Is it possible to open NX/CATIA using Selenium. I know we have Sikuli.jar file to interact with Desktop. But after opening the NX/CATIA application, can we do some actions like creating some model or drawing and then saving.
Basically i have a web based Application which is controlled by Selenium. Now i have a step to open with NX/CATIA from web Based Application and then perform some actions
Thanks in Advance.
Related
I wanted to know if it possible to create a web driver object and keep it somewhere in ASP.NET Core MVC so that I can access the web driver again (maybe in startup)?
Basically, what I am trying to do is: when the user clicks a button in my webpage, it will open the web driver and start performing task and disable the button.
The user can go to other pages but the driver will be running in background because chrome driver is running separately in the server.
The task will download a csv to the server, and once done the the "Start" button will be reactivated and the user can download the csv.
I would like to get your suggestion, how I can achieve this?
Thank you so much.
I've a test where it handles login system popup using Robot of Java. But because of some issues, other applications or browser instance come to front and Robot could not perform actions on system popup of Windows.
Hence before interacting with system popup using Robot, I want to bring that browser to front on machine. I tried following but it did not help -
((JavascriptExecutor)driver).executeScript("window.focus();");
Could you please suggest how I can bring it to the front?
I am building a web site in Django that would scrape data from some site, so people could enter the site, set custom data filters and view scraped data in friendly format.
The problem is that requests and beautiful soup modules will not be enough for the scraping purposes, since I will also need some automation to be done (loading javascript or clicking buttons).
Since Selenium requiers a webdriver to be downloaded and put into a path, is it possible to use it from within web app? Like hosting the webdriver somewhere?
I am also open to solutions other than Selenium, if there are any.
I think what you would want is a selenium grid server.
https://www.seleniumhq.org/docs/07_selenium_grid.jsp
Basically you host it on some remote server and then you can connect to it and spin up web drivers remotely and use them in code as needed. It also comes with a handy interface for checking on current browser instances and even taking screenshots or executing scripts from the web ui.
I want to write an acceptance test for my browser extension. I've tried to initiate an extension via selenium but I can't seem to access a content of popup. Can someone suggest how can I do it with selenium or any other way to write UI/acceptance tests for browser extensions? Thanks.
How can I access browser extension's popup using selenium?
It's not possible. Selenium supports interaction with web view only.
What you can do with Selenium and extension for sure is automatic installation: https://stackoverflow.com/a/16512012/2517622
You may try to use desktop automation tools (e.g. White on Windows platform) for clicking on extension popup but it's not that easy and it's not platform independent as Selenium.
Here is the workaround we came up. Unless someone posts here the "right" solution I will consider this as the best approach.
So eventually, our extension is an iframe which just loads a page content from our website + does some other neat stuff. We simply open that url in a new tab and do regular selenium tests.
Side not: we have considered to write a little javascript wrapper to be able to access ext via main window through javascript. E.g. there is some js in ext that listens to main window's events and perform certain actions. Tho, it is too much efforts and doesn't really sound like a proper acceptance test so we discarded this approach.
I want to automate GUI testing that involves following steps.
Open a URL in my web browser (Internet Explorer). The page at this URL will contain a link.
Click the link on the page. This will download a JNLP and launch the Java Web Start application automatically.
The application will have some text fields that need to be filled in and some buttons that need to be pressed.
How can I automate this?
Platform: Windows
Edit: I'm looking at Sikuli as a possible method of automating this, but I don't know if it will be able to switch between applications from the web browser (in step 1) to the Java application (in step 3). Are there any other tools available (preferably open source) that I should be looking at?
Sikuli will be able to switch between the two applications, for sure. It's quite good at that sort of thing, since it's agnostic about the underlying GUI technology.
In my opinion, Sikuli sounds like the fastest and easiest way to get your test scenario automated, because otherwise you may need to deal with two frameworks (one for automating the web browser and another for your Java application).