selenium-grid2

How to add cookie to Selenium IDE test running in grid via selenium-side-runner for Zalenium messages

佐手、 提交于 2020-08-10 19:32:47
问题 I've recorded a test using Selenium IDE and am submitting the generated .side file to selenium-side-runner to run on a Selenium Grid built using Zalenium . Is it possible to run a command that calls driver.manage().addCookie() from the test that was submitted to selenium-side-runner ? I want to do this to send messages back to Zalenium with test progress and status I added a command executeScript to the Selenium IDE editor with a target of driver.manage().addCookie({name: 'test', value: 'test

How to add cookie to Selenium IDE test running in grid via selenium-side-runner for Zalenium messages

和自甴很熟 提交于 2020-08-10 19:32:13
问题 I've recorded a test using Selenium IDE and am submitting the generated .side file to selenium-side-runner to run on a Selenium Grid built using Zalenium . Is it possible to run a command that calls driver.manage().addCookie() from the test that was submitted to selenium-side-runner ? I want to do this to send messages back to Zalenium with test progress and status I added a command executeScript to the Selenium IDE editor with a target of driver.manage().addCookie({name: 'test', value: 'test

WedDriverException : java.util.HashMap cannot be cast to java.lang.String when initializing RemoteWebDriver

若如初见. 提交于 2020-01-25 04:49:16
问题 I am trying to run Junit tests in parllel ,did a grid setup with 3 nodes , while executing the test got an exception org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. My understanding is There is nothing to do with Firefox and selenium version , I believe the exception is due to lock issued by the firefox for an webdriver instance which is not released within 45000 ms which throws an timeout exception for other webdriver

Distributed native test execution over android devices

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-25 19:47:11
问题 I need to execute a test suite in distributed mode over two android devices . i'm using appium and testng .Any one of you'll able to do so ? 回答1: Here you have a pretty good setup to use in your project: AppiumTestDistribution E.g., you build with Maven, then add dependencies to your project: <dependency> <groupId>com.github.saikrishna321</groupId> <artifactId>AppiumTestDistribution</artifactId> <version>09c4398</version> </dependency> <repositories> <repository> <id>jitpack.io</id> <url

How can I add profile preferences to Chrome for Selenium Grid 2 in C#?

醉酒当歌 提交于 2019-12-18 05:12:36
问题 This is how I add profile preferences to Chrome for Local Auto-test runs and TeamCity(CI): Capabilities = DesiredCapabilities.Chrome(); var chromeOptions = new ChromeOptionsWithPrefs(); chromeOptions.AddUserProfilePreference("download.default_directory", DownloadPath); chromeOptions.AddUserProfilePreference("intl.accept_languages", "nl"); chromeOptions.AddUserProfilePreference("disable-popup-blocking", "true"); return new ChromeDriver(chromeDriverPath, chromeOptions); But when I create new

Can Selenium use multi threading in one browser?

假如想象 提交于 2019-12-17 06:09:38
问题 I want to test a web in multi threading but when I open too many chromedrivers they use too much memory. Can I use multi threading in one browser? 回答1: WebDriver is not thread-safe .The issue of thread-safety isn't in your code but in the actual browser bindings. They all assume there will only be one command at a time (e.g. like a real user).But you can on the other hand instantiate one WebDriver instance for each thread but it will launch multiple browsers which will consume more memory...

How to run Selenium-Grid on CloudFoundry?

懵懂的女人 提交于 2019-12-12 13:24:13
问题 Did anyone run Selenium-Grid on CloudFoundry with routing provided by Gorouter? According to the "Selenium-Grid Documentation" we can pass the hub address to a node instance like that: java -jar selenium-server-standalone.jar \ -role node \ -hub http://myhub.cf/grid/register but this node registers yourself with the local address and port. 回答1: I have already found a solution to my problem (Selenium v3.14.0). Local test based on selenium-server-standalone Hub java -Xmx640M -jar selenium

Selenium remotewebdriver stuck before launching browser

梦想与她 提交于 2019-12-12 04:35:06
问题 I'm trying to launch Firefox remotely on a windows machine from UNIX box using remotewebdriver I am also starting the selenium node remotely using ssh(It starts fine) using Cygwin and OpenSSH. (I've installed firefox in the path c:\cygwin64\home\Administrator\firefox) I am launching the grid node using: java -jar selenium-server-standalone-2.53.0.jar -role node -hub http://HUB_IP:4444/grid/register -port 5566 -Dwebdriver.gecko.driver=geckodriver.exe -Dwebdriver.firefox.bin="firefox/firefox

Selenium Grid with Docker containers on different hosts

白昼怎懂夜的黑 提交于 2019-12-07 16:23:14
问题 I like to setup a Selenium Grid on AWS with the official Docker images, that can be found here https://github.com/SeleniumHQ/docker-selenium Hub and nodes should reside on different machines / docker hosts. I use an ambassador container, as described here: https://docs.docker.com/articles/ambassador_pattern_linking/ (hub) --> (selenium-ambassador) --network--> (selenium-ambassador) --> (node) I created two EC2 instances and executed the following commands: On the hub machine: $ docker run -d

How start remote webdriver after regitering a node in a hub?

☆樱花仙子☆ 提交于 2019-12-06 12:11:25
问题 I'm trying to launch remoteWebdriver, for that I have created a hub progmatically then I have added a node on it. That is fine.The problem now when I execute: Thread.currentThread().join(); The program stop executing, and if I remove this line I get error. try{ String strIP = "localhost"; GridHubConfiguration config = new GridHubConfiguration(); config.setTimeout(30000000); config.setPort(4444); config.setHost(strIP); Hub hub = new Hub(config); hub.start(); RegistrationRequest req = new