selenium-grid2

Selenium Grid with Docker containers on different hosts

三世轮回 提交于 2019-12-05 21:42:52
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 --name selenium-hub selenium/hub:2.47.1 $ docker run -d --link selenium-hub:selenium-hub --name

parallel test with appium & selenium grid

半腔热情 提交于 2019-12-02 03:32:45
问题 I'm trying to run parallel test on 2 devices using appium & selenium grid but for some reason it runs only on the first node server (and first device) but nothing happen on the second server. Also if I'm shutting down the first server and run the test then the test run on the second server so there shouldn't be any issue with the servers. Is there some parameter that I have to give in order to set it to parallel ? Thanks for the help ! Here are my files : First server json file : {

Specifying Windows Versions (or Specific Machines) in Selenium Grid

跟風遠走 提交于 2019-12-01 01:41:40
I'm setting up a Selenium Grid in order to cover a test matrix that needs to comprehensively cover the following combinations: Three servers (windows server 2003, 2008, and 2012) that provide identical services and ten clients (of flavors XP, win7, win8, and win8.1) that will be accessing each of the three servers to perform nearly identical tests. The three servers part is most likely irrelevant to this question, but I threw it in for context's sake. I'm configuring which servers to use via TestNG DataProviders. The catch is that I want to test the interactions not just between different

Specifying Windows Versions (or Specific Machines) in Selenium Grid

亡梦爱人 提交于 2019-11-30 20:58:15
问题 I'm setting up a Selenium Grid in order to cover a test matrix that needs to comprehensively cover the following combinations: Three servers (windows server 2003, 2008, and 2012) that provide identical services and ten clients (of flavors XP, win7, win8, and win8.1) that will be accessing each of the three servers to perform nearly identical tests. The three servers part is most likely irrelevant to this question, but I threw it in for context's sake. I'm configuring which servers to use via

Remote webdriver - Passing firefox profile with Rest Client Extension (add-on)

随声附和 提交于 2019-11-30 13:07:12
Currently I am able to send a firefox profile over a RemoteWebDriver, but I am not able to send the RestCLient extension over the profile. I require a certain REST client extension(firefox add-on) to be available for my test case execution. If I run the test case locally using firefox driver it works....but how do I achieve the same thing using RemoteWebDriver? File profileDirectory = new File("c://mach//lib//prof"); FirefoxProfile profile = new FirefoxProfile(profileDirectory); driver = new FirefoxDriver(profile); driver.manage().timeouts().implicitlyWait(15, TimeUnit.SECONDS); Cheers After

Remote webdriver - Passing firefox profile with Rest Client Extension (add-on)

為{幸葍}努か 提交于 2019-11-29 18:38:51
问题 Currently I am able to send a firefox profile over a RemoteWebDriver, but I am not able to send the RestCLient extension over the profile. I require a certain REST client extension(firefox add-on) to be available for my test case execution. If I run the test case locally using firefox driver it works....but how do I achieve the same thing using RemoteWebDriver? File profileDirectory = new File("c://mach//lib//prof"); FirefoxProfile profile = new FirefoxProfile(profileDirectory); driver = new

Chrome remote debugging in a seleniumgrid

倖福魔咒の 提交于 2019-11-29 18:01:54
Im running a selenium-grid with several chrome instances. The selenium grid are 2 machines(windows) with several nodes. The tests are executed from another machine which connects to the grid. To be able to use the features of remote debugging, i need to connect from the executing machine(which can read the sessions host and the drivers debugUrl) to the other machines and finally the chrome instances. But chrome rejects anything else than localhost. I can only find solutions, where people tunnel or port forwarding, which is perhaps ok, when there is only a single instance. In a grid i don't

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

我是研究僧i 提交于 2019-11-29 08:08:35
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 'RemoteWebDriver', I must send it a hub URL and 'Capabilities', this way I send profile preferences to

Selenium grid with Chrome driver (WebDriverException: The path to the driver executable must be set by the webdriver.chrome.driver system property)

别说谁变了你拦得住时间么 提交于 2019-11-28 21:54:35
I am trying to get my Selenium Grid running on Chrome driver. At first I started hub and node: java -jar selenium-server-standalone-2.45.0.jar -role hub java -jar selenium-server-standalone-2.45.0.jar -role node -hub http://localhost:4444/grid/register than I launch my test: public class ChromeDriverTest { private WebDriver driver = null; String BaseURL,NodeURL; @Before public void before() throws Exception{ BaseURL="http://www.google.com"; NodeURL="http://localhost:4444/wd/hub"; File file = new File("C:\\Users\\pushkaryova\\Desktop\\Nexus\\driver\\chromedriver.exe"); System.setProperty(

Chrome remote debugging in a seleniumgrid

痴心易碎 提交于 2019-11-28 11:40:00
问题 Im running a selenium-grid with several chrome instances. The selenium grid are 2 machines(windows) with several nodes. The tests are executed from another machine which connects to the grid. To be able to use the features of remote debugging, i need to connect from the executing machine(which can read the sessions host and the drivers debugUrl) to the other machines and finally the chrome instances. But chrome rejects anything else than localhost. I can only find solutions, where people