selenium-grid

How to run chrome browser in grid using MAC as hub and Windows as Nod?

最后都变了- 提交于 2019-12-08 12:25:11
问题 Hub: MAC 64-bit Nod: Windows 32-bit Unable to run chrome browser using Selinum grid MAC as hub and Windows as nod? using below code i am getting an error (The path to the driver executable must be set by the webdriver.chrome.driver system property; for more information, see http://code.google.com/p/selenium/wiki/ChromeDriver. The latest version can be downloaded from http://code.google.com/p/chromedriver/downloads/list Command duration or timeout: 668 milliseconds) public void chromeWindows()

How to implement custom control over python multiprocessing.Pool?

↘锁芯ラ 提交于 2019-12-08 11:24:17
问题 Usually i use following code, and it works fine when you do not matter in which order function process_func will handle some parameter: params = [1,2,3,4,5 ... ] def process_func(): ... pool = new Pool(40) pool.map(process_func, params) pool.close() pool.join() In example above we have processes of one type, with maximum simultanious number of 40. But.. imagine we have processes (parameters) of different type, which should be executed simultaniously. For example, in my selenium grid i have 40

Docker for AWS and Selenium Grid - Connection refused / No route to host (Host unreachable)

假如想象 提交于 2019-12-08 08:54:16
问题 What I am trying to achieve is a scalable and on-demand test infrastructure using Selenium Grid. I can get everything up and running but what I end up with is this: Here are all the pieces: Docker for AWS (CloudFormation Stack) docker-selenium Docker compose file (below) The "implied" software used are: Docker swarm Stacks Here is what I can accomplish: Create, log into, and ping all hosts & nodes within the stack, following the guidelines here: deploy Docker for AWS Deploy using the compose

Chrome browser unable to create session with selenium grid. It simply hangs randomly for tests

大兔子大兔子 提交于 2019-12-08 07:37:18
问题 What do i need to do to use the DBUS_SESSION_BUS_ADDRESS =/dev/null. I am using selenium standalone server with hub on windows machine and trying to use chrome browser of a mac. I have 70 tests for which hub creates a session on node , test steps are fired and browser is quit. So at times randomly at times for chrome browser session is not created and the hub has to wait until timeout occurs . Thanks The following link https://github.com/SeleniumHQ/docker-selenium/issues/87 suggests to set

Executing parallel tests in a Selenium keyword driven framework

感情迁移 提交于 2019-12-08 07:19:22
问题 In a data-driven framework, we use Selenium along with TestNG to run multiple tests in parallel. How can the same be implemented in a keyword-driven framework? In data-driven approach we can define every test case as a separate method and therefore we are able to command TestNG via annotations which methods to run and how many to run in parallel. In keyword-driven approach, every test case is a separate Excel Sheet and multiple excel sheets in the same workbook make a test suite. How can

API for getting the selenium nodes status from the grid host

会有一股神秘感。 提交于 2019-12-08 05:27:08
问题 Sorry for the generic question, but is there an api that is available as part of the selenium grid that i can query to find out the current active sessions on the grid. There is an api that uses the Json Wire protocol that enables to query the individual nodes to get the sessions information. However i was wondering if there is one that is tied with the grid machine that i can query to get the sessions information of all nodes. Any help is appreciated. Thanks! 回答1: Currently there is nothing

org.openqa.selenium.WebDriverException: Error forwarding the new session cannot find : Capabilities

时间秒杀一切 提交于 2019-12-08 02:48:14
问题 Hub starting command : java -jar selenium-server-standalone-3.11.0.jar -role hub Node starting command : java -Dwebdriver.chrome.driver=/Users/alina/Selenium/chromedriver.exe -jar selenium-server-standalone-3.11.0.jar -role webdriver -hub http://192.168.100.4:4444/grid/register/ Environment Details (updated from comments) : Selenium 3.11.0, Chrome 66, ChromeDriver 2.38 import java.net.MalformedURLException; import java.net.URL; import java.util.concurrent.TimeUnit; import org.openqa.selenium

Selenium 3.0.1 Chrome Node configuration

戏子无情 提交于 2019-12-08 02:15:33
问题 Selenium 3.0.1 update is throwing an error while invokeing the node through Json Config File. Please find the following details from the Json file. { "capabilities": [ { "browserName": "chrome", "maxInstances": 5, "seleniumProtocol": "WebDriver" } ], "configuration": { "proxy": "org.openqa.grid.selenium.proxy.DefaultRemoteProxy", "maxSession": 5, "port": 5559, "host": ip, "register": true, "registerCycle": 5000, "hubPort": 4445, "hubHost":ip, "hub":"http://XX.XX.XX.XX:XXXX/grid/register",

How to connect iphone emulator to selgrid 2?

老子叫甜甜 提交于 2019-12-08 01:40:58
问题 I have done all the steps listed here to setup a webdriver backed iphone emulator. I am also able to run my scripts of the emulator when running them locally using the below code while creating my driver instance. driver = Selenium::WebDriver.for :remote, :url => "http://localhost:3001/wd/hub", :desired_capabilities => :iphone What I intend to do is connect this emulator to sel grid 2, which has the hub running remotely on a windows machine. Can some one please share the command to start the

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