selenium-grid

Error registering PhantomJS node in Selenium Grid

谁都会走 提交于 2019-12-04 11:12:03
问题 I have the following problem I successfully launched Selenium Grid hub with: java -jar selenium-server-standalone-2.53.0.jar -role hub After that I tried to launch PhantomJS node with: phantomjs --webdriver=8090 --webdriver-selenium-grid-hub=http://localhost:4444 but got Error: [INFO - 2016-03-25T13:56:28.397Z] GhostDriver - Main - running on port 8090 [INFO - 2016-03-25T13:56:28.397Z] GhostDriver - Main - registering to Selenium HUB 'http://localhost:4444' version: using '127.0.0.1:8090'

Selenium Grid with parallel testing using C#/NUnit

回眸只為那壹抹淺笑 提交于 2019-12-04 10:04:24
I've got several unit tests written with NUnit that are calling selenium commands. I've got 2 win2k3 server boxes setup, one is running selenium grid hub along with 2 selenium rc's. The other box is running 5 selenium rc's. All of them are registered with the hub as running Firefox on Windows (to keep it simple). In my unit test setup method I've got it connected to the hub's hostname at port 4444. When running the tests, they only run sequentially (as expected). I've done a lot of reading on NUnit's roadmap and how they are shooting for parallel testing abilities. I've seen lots of pointers

Can Selenium Grid be configured to require authentication?

喜你入骨 提交于 2019-12-04 04:10:22
问题 How can I force the Selenium hub/node require a password to be accessed? I don't mean authenticate the browser. I mean require the Selenium server to ask for a password before it will execute a test. It seems that if you are running a Selenium hub or node you are at great risk unless you are in a very private network. 回答1: Right now the answer is no. It is however an open source project so you could write the functionality to do this and offer up a patch. the source is available here: http:/

Can I run Selenium on Computer A, and see the browser in Computer B?

冷暖自知 提交于 2019-12-03 21:07:11
Imagine I have some Selenium Project ready on Computer A. When you run this project, a new browser opens in Computer A, and connects to www.somesite.com and runs the tests.. Now, also on computer A, imagine I am running a web page, which has a button, which triggers these tests... So when I navigate to www.ipofcomptera.com and click "Run Tests", a new browser opens in Computer A, and runs the tests... What I want is, I either want that browser opens in Computer B ( The computer I am reaching to Computer A ) or, it may as well run in A but I want to see all the steps on my computer as well.

Is there any video recorder for Selenium WebDriver?

僤鯓⒐⒋嵵緔 提交于 2019-12-03 20:07:20
i am working in Selennium Webdriver2 with IE specific application. i know we can take the screenshots of the execution. similarly, Is there any option to record selenium execution as a video? This API helped me in solving the above problem, this is for your reference guys, There is nothing in WebDriver. Sauce uses http://www.ffmpeg.org/ to record video's. There are other options like https://code.google.com/p/java-remote-control/ . Generally the answer is that if you want to do it, you are going to have to implement it yourself. 来源: https://stackoverflow.com/questions/18333829/is-there-any

Unable to connect to Firefox

假如想象 提交于 2019-12-03 17:11:12
I'm working on Selenium and I currently have a hub connected to two vms running linux with all the browsers. I was able to launch browsers until suddenly it just stopped . Firefox or any of the other browsers don't launch. I get the following error. Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. I am running Selenium-server-standalone 2.26 with firefox 16.0.2 . Please help. Try running this before you start your Selenium server: export DISPLAY=:0 来源: https://stackoverflow.com/questions/13281568/unable-to-connect-to-firefox

Selenium Grid2 - Remote Node not connecting to HUB

丶灬走出姿态 提交于 2019-12-03 09:55:40
问题 My current setup is I have a selenium RC running as a hub on a windows machine(lets assume machine name is machine.name.com). I have used the following command to start it java -jar selenium-server2.15.jar -role hub -port 5555 I have a selenium node running on the same machine which is registered to the above node. I have used the following command to start the node java -jar selenium-server2.15.jar -role node -port 5554 -hub http://machine.name.com:5555/grid/register This node gets

Driver behavior executing parallel TestNG selenium tests with dataprovider

帅比萌擦擦* 提交于 2019-12-03 09:12:12
I want to run selenium tests in TestNg in parallel that use the @dataprovider. Ideally tests are parallel by method (one test = one method) and not simple suite parallelism by browser. I have read somewhere that about 5 instances of ChromeDriver can be controlled at a time so I thought this should be possible. Later I plan to move to grid2. For developement I'm running things with IntelliJ Idea test runner by right-click + run on the XML config file. I had problems running my tests in parallel (on grid2 and locally) so I created a sample of more or less what I want to do. Here is my test class

How to run multiple browsers on one hub using Selenium Grid2

二次信任 提交于 2019-12-03 08:59:04
I'm running a test: DesiredCapabilities capability = DesiredCapabilities.Firefox(); IWebDriver driver = new RemoteWebDriver(new Uri("http://localhost:4444/wd/hub"), capability); ISelenium selenium = new WebDriverBackedSelenium(driver, "http://localhost/"); selenium.Start(); This runs the Firefox browser, and in the http://localhost:4444/grid/console web console view I can see that one Firefox browser is running. How can I use more than one browser on the node in parallel? I'm using the Grid2 wiki page found here A.J You need to trigger 5 tests simultaneously - all pointing to the same hub, to

Selenium Grid Video Recording

怎甘沉沦 提交于 2019-12-03 07:53:29
I'm trying to record videos of my Selenium-Tests. These Tests run parallel on Selenium Grid. I wanted to open a VNC-Server for each firefox and then start recording. So one grid-node would open 5 vncservers and then a program like 'recordMyDesktop' would record each one of them and store them in a different file. I found this: http://www.theautomatedtester.co.uk/blog/2010/castro-selenium-video.html but not for Java and Grid... Thank you in advance Richard (My environment is Firefox on Linux) Available since April 2014, there is a java library you can use to record videos called selenium-video