selenium-grid

Selenium Grid, how to utilize WebDriver with ThreadSafeSeleniumSessionStorage.session()

一笑奈何 提交于 2019-12-07 07:35:15
问题 I am working on a project that involves using the Selenium WebDriver and a specific Firefox Profile heavily to find elements and manage the page. For example, driver.findElement(By.xpath("//*[@id='foobar']")); and driver.manage().refresh(); I am trying to implement Selenium Grid into my project; however, with the extensive use of Selenium WebDriver, is there a way to start the ThreadSafeSeleniumSessionStorage.session() static object with a specific WebDriver? As far as I have researched, it

Run yaml file for parallel selenium test from R or python

泪湿孤枕 提交于 2019-12-07 06:38:29
问题 I have a simple yaml file: seleniumhub: image: selenium/hub ports: - 4444:4444 firefoxnode: image: selenium/node-firefox-debug ports: - 4577 links: - seleniumhub:hub chromenode: image: selenium/node-chrome-debug ports: - 4578 links: - seleniumhub:hub that I have executed in docker: docker-compose up -d I have one hub and two nodes running. Now I would like to run two very simple selenium commands in parallel (written in RSelenium): remDr$open() remDr$navigate("http://www.r-project.org") remDr

Unable to create new remote session - Selenium webdriver

て烟熏妆下的殇ゞ 提交于 2019-12-06 23:13:55
问题 I am getting exception Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: Unable to create new remote session. desired capabilities = Capabilities [{marionette=true, browserName=firefox, version=48.0.1, platform=ANY}], required capabilities = Capabilities [{}]' while trying to run selenium script in a remote web driver. Hub and node are configured properly and its able to communicate to each other. Selenium web driver : 3.0 Platform : Windows server 2012 R2. Firefox

How to connect iphone emulator to selgrid 2?

戏子无情 提交于 2019-12-06 15:32:42
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 webdriver node on the mac machine(coincidentally my local machine). Some thing like java -jar

Selenium grid and Jenkins configuration

廉价感情. 提交于 2019-12-06 13:00:58
问题 I have downloaded Selenium Grid plugin for Jenkins, and I have two nodes running: java -jar selenium-server-standalone-2.41.0.jar -role node -hub http://jenkins.bla.bla.com:4444/grid/register. In Jenkins, in Selenium Grid tab I can see the two nodes connected: http://xxx.xxx.xx.xxx:5555 (*firefox 5/5, *googlechrome 5/5, *iexplore 1/1, chrome 5/5, firefox 5/5, internet explorer 1/1) http://xxx.xxx.xx.xxx:5555 (*firefox 5/5, *googlechrome 5/5, *iexplore 1/1, chrome 5/5, firefox 5/5, internet

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

旧时模样 提交于 2019-12-06 12:58:55
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.By; import org.openqa.selenium.Platform; import org.openqa.selenium.WebDriver; import org.openqa

WebDriverException: Message: Missing 'marionetteProtocol' field in handshake

送分小仙女□ 提交于 2019-12-06 10:43:31
I'm currently trying to run a robotframework test scripts locally (Ubuntu 12.04 LTS 64 bit). The issue that I faced was not able to launch FF browser in Open Browser. Below is the details/specs of the setup that I have. Firefox (v26.0) Selenium2Library selenium-server-standalone-2.53.1.jar geckodriver-v0.9.0 Please note that I used same machine as hub and node (selenium grid) Here the command to launch my hub : java -jar selenium-server-standalone-2.53.1.jar -role hub -port 4444 While here's the command to register my node : java -jar selenium-server-standalone-2.53.1.jar -role node -hub http:

Connection refused when phantomjs is run on different machine than selenium hub

拟墨画扇 提交于 2019-12-06 09:38:19
问题 Is it possible to have a selenium hub on one machine and an instance of phantomjs on a different computer that connects to the hub in the same manner as a selenium node? If I start a selenum hub and an instance of phantomjs on the same machine, I can successfully run tests. If I start a selenium hub and start a selenium node a different machine and run a test with firefox, the test is executed successfully. If I start a selenium hub and an instance of phantomjs on a different machine,

Selenium 3.0.1 Chrome Node configuration

别说谁变了你拦得住时间么 提交于 2019-12-06 09:26:27
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", "timeout":600000, "browserTimeout":600000" } } Error - Error with Json of Config : Depricated node config

Understanding Selenium Grid2 implementation running on EC2

[亡魂溺海] 提交于 2019-12-06 05:11:44
I have implemented Selenium Grid by reading and understanding from the sparse/fragmented online documentation about Grid2. My current implementation is- Webdriver node registered and running on EC2 instance java -jar selenium-server-standalone-2.8.0.jar -role webdriver -hub http://EC2_PUBLIC_IP:5555/grid/register -port 5556 Hub registered and running on same EC2 instance java -jar selenium-server-standalone-2.8.0.jar -role hub -hubhost EC2_PUBLIC_IP -port 5555 I am running my Webdriver based TestNG tests from Eclipse on my local machine. The driver configuration is driver = new RemoteWebDriver