selenium-rc

How to automate username/password fill for firefox authentication popup using selenium IDE

核能气质少年 提交于 2019-12-18 09:14:20
问题 I got a selenium script that works, but when it is opened with selenium-rc it is in a new instanced which requires me to re-login. Is there a way to automate filling in the username/password for the "authentication required" window that pops up? I have tried the following but it doesn't work: http://username:password@site.com/ instead of http://site.com/ Any ideas other than calling another script like autohotkey? 回答1: I ended up using AutoIT with a login script containing the following and

Is there any method in WebDriver with Java for controlling speed of browser?

这一生的挚爱 提交于 2019-12-18 05:57:09
问题 When I use Selenium RC there is a method setSpeed as: selenium.setSpeed("500"); What is the way to control speed of browser in Selenium WebDriver? 回答1: You can use Thread.Sleep(500) (or equivalent) in whatever language you are using to run webdriver. This will cause the thread to pause for an exact number of milliseconds. Alternatively you can use explicit or implicit waits described here. Explicit waits allow you to define an ExpectedCondition . Webdriver will check the condition every 500

What are the differences between 'Selenium-server-standalone.jar' and 'Selenium Client & WebDriver'?

给你一囗甜甜゛ 提交于 2019-12-18 02:03:16
问题 What are the Implementations differences between 'Selenium-server-standalone.jar' and 'Selenium Client & WebDriver'. Following is the link from SeleniumHQ.org website [http://www.seleniumhq.org/download/].. http://selenium-release.storage.googleapis.com/2.44/selenium-server-standalone-2.44.0.jar "http://selenium-release.storage.googleapis.com/2.44/selenium-java-2.44.0.zip" I know first one is Formerly known as Selenium RC and second one is Selenium 2.0(Webdriver). But Is the latest version

Run chrome browser in inconginto Mode in Selenium

给你一囗甜甜゛ 提交于 2019-12-17 17:59:51
问题 I want to run chrome in incongito mode through selenium. I googled enough for it and found how to run chrome directly in incongito mode with the help of this link: Right click on the shortcut of Google Chrome and select "Properties". On "Shortcut" tab on the "Target" field add an –incognito to the end of program path. So in the "Target" field you should have "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" –incognito but I didn't get how to run this in selenium. 回答1: One other

List of Selenium RC browser launchers

自作多情 提交于 2019-12-17 17:44:31
问题 I am trying to find a full list of Selenium RC browser launchers. So far I've not been able to find any documentation that lists them all. I've gathered the following ones from various sources. *iexplore - Launches IE *firefox - Launches Firefox *safari - Launches Safari *opera - Launches Opera *googlechrome - Launches Google Chrome *chrome - Launches special Firefox profile with elevated security privileges, to bypass Javascript security errors *iehta - Launches IE with elevated security

Use same web driver throughout selenium suite

笑着哭i 提交于 2019-12-17 17:03:25
问题 I have a the following selenium test suite inheriting from the same base class, how to I have the tests use the same web driver instance when i run the entire test suite?. I also want to run each tests in isolation aswell. I believe this will cut down the time it takes to run the suite considerably. This test is run from maven that in turn runs each test class. @RunWith(Suite.class) @SuiteClasses({ AdminPortalTestSuite.class, DevPortalTestSuite.class, CommonTestSuite.class }) public class

Selenium testing without browser

假如想象 提交于 2019-12-17 15:30:00
问题 I use Selenium RC for testing. Now to perform a load test, I want to run parallel test cases. Is there any way to run them without opening a browser? 回答1: To set up on Centos (do all installation as root) Install pip Download https://bootstrap.pypa.io/get-pip.py python get-pip.py Installing selenium If you have pip on your system, you can simply install or upgrade the Python bindings: pip install -U selenium Alternately, you can download the source distribution from PyPI (e.g. selenium-2.53.1

Difference between Selenium RC and WebDriver

梦想与她 提交于 2019-12-17 15:27:06
问题 What's the basic difference between Selenium RC and WebDriver ? 回答1: Quoting from WebDriver and Selenium RC: Selenium-WebDriver makes direct calls to the browser using each browser’s native support for automation. How these direct calls are made, and the features they support depends on the browser you are using. Information on each ‘browser driver’ is provided later in this chapter. For those familiar with Selenium-RC, this is quite different from what you are used to. Selenium-RC worked the

Selenium-rc: How do you use CaptureNetworkTraffic in python

余生长醉 提交于 2019-12-14 03:39:36
问题 I've found many tutorials for selenium in java in which you first start selenium using s.start("captureNetworkTraffic=True") , but in python start() does not take any arguments. How do you pass this argument? Or don't you need it in python? 回答1: I changed the start in selenium.py : def start(self, captureNetworkTraffic=False): l = [self.browserStartCommand, self.browserURL, self.extensionJs] if captureNetworkTraffic: l.append("captureNetworkTraffic=true") result = self.get_string(

Extending Selenium: How to call commands?

泄露秘密 提交于 2019-12-14 00:56:05
问题 I read about user extensions and extending selenium but am wondering how to call a command from within a custom command I'm creating. I added a file similar to the following to Selenium core extensions (user-extensions.js) in Selenium IDE Options. // selenium-action-example.js Selenium.prototype.doExample = function() { this.doOpen("/"); // doesn't waitForPageToLoad like the command does // These two commands are equivalent to the clickAndWait command. NOT! // For proof, see the