Save password prompt is getting in chrome while running Selenium scripts getting.
Testing is unaffected. But running a Selenium test has an impact on the demo. How can I turn it off?
Related
I want to run my selenium scripts through Jenkins(Linux server) in actual browser but right now it is running in headless mode. I am not able to see the execution of scripts on UI. Can someone help me into this ?
Unable to switch to windows popup using selenium webdriver when there is no active windows user session.
I have test case where we invoke windows windows print dialog from our application and we cancel the print dailog. i have used autoit and robot to handle windows popup.Both works fine on my local dev machine.
But when i run the same set of test cases through jenkins on a AWS server the test case fails after invoking the print dialog where there is no active user session.
The code works when i login and run the test cases but when i logout the test cases fail.
I work for a Music company and have my Automation/Regression suite built on Java, jUnit, Selenium WD, Ant framework.
I use Selenium Grid to run the tests on Various Grade A browsers.
Now we are moving to Continuous Integration (Jenkins) setup and I need to run tests on a Linux machine(CentOS) which does not have a UI.
I started off with the following setups to run regression
Run the above mentioned tests (Java, SeleniumWD, JUnit and Ant) in Linux box using Xll, xvfb and Firefox headless browser.
Run the tests on the Linux box using a PhantomJS browser setup.
IN BOTH THE CASES ALL THE TEST THAT REQUIRE FLASH CONTENT TO BE LOADED AND TESTED Fails.
I am NOT ABLE TO ACCESS THE WINDOWS/MAC Machine via/through LINUX BOX (using Hub/node Selenium grid options), connection timed out error is consistent.
IT WOULD BE REALLY HELPFUL IF THERE IS SUGGESTIONS/WORK AROUND/Frameworks TO HANDLE this situation.
Not having windows shouldn't be a problem. Can you setup XWindow sessions and run slave agent there to run real browser session?
Both Firefox and Chromium should work with CentOS.
I am new to selenium.....
I've written a selenium code with java for Automation script. while running the script i am getting a Security Warning window which has the options called 'Continue' and 'Stop Script'. How to click Continue through selenium control. There is no way for getting xpath or id of the continue button.
its not a application window,it is firefox security warning window..So, the alert window method accept.alert() is not working.
can u please tell me how to handle those type of firefox warning windows.
In my code below two lines of code to solved the problem "Warning: Unresponsive script " error is coming while running automation script in Selenium server
By using these two lines of code in setting firefox preferrences.
profile.setPreference("dom.max_chrome_script_run_time", 0);
profile.setPreference("dom.max_script_run_time", 0 );
My selenium RC java code is running successfully on firefox. Can anyone tell me how to run the same test case on internet explorer?
Change the browser start command string you pass to DefaultSelenium factory. It will be *iehta or *iexplore depending on your selenium version.
new DefaultSelenium("localhost", 4444, "*iexplore", "http://www.google.com/");
Check out the docs for more info.
--Sai
Just replace *firefox with *iexplore. The exact code will vary depending on what language you're writing your test in or how you're actually launching the browser.
see: http://seleniumhq.org/docs/05_selenium_rc.html#from-selenese-to-a-program and click the button for your particular language.
If you hit the Script error while running tests on IE with selenium RC, it might be because of not running the selenium server with Administrator privileges. I had the similar issue and could get it running with by running the selenium server as an Administrator
Very simple: Use "*iexplore" instead of "*firefox"
In order to work the scripts on IE do the following steps
1.Navigate to ToolsInternet OptionsSecurityTrusted Sites
2.Click on “Sites” button and add the Urls of the application you are testing in “Add this website to the zone:” and clicking on “Add” button.
3.Navigate to ToolsInternet OptionsSecurity and disable the checkbox “Enable Protected Mode (requires restarting Internet Explorer)” and click on “Apply” and click “Ok”.
a. Navigate to ToolsInternet OptionsSecurity
b. Add all the URL’s of your application in the “Address of websites to allow” and click on “Add” button.
Navigate to ToolsInternet OptionsAdvanced options. Scroll down to the Security section, and select Allow active content to run in files on my computer. This will get rid of the pesky toolbar alert, and allow JavaScript to run automatically.