selenium-grid

Selenium Grid and RemoteWebDriver

狂风中的少年 提交于 2019-12-13 02:33:02
问题 I have an application written in Java that creates an email account on a specific website. For certain reasons, I need to run each iteration of the program under a different windows user account. I'm using Selenium Grid (RemoteWebDriver) to connect to a remote server (Grid) from a hub server. Assuming I have multiple windows user accounts set up on a remote windows server (such as "account639", "account729", "account889" etc) and I want my hub to connect to each account separately and execute

Ant - continue the target execution ,even if one target completes for selenium automation

北战南征 提交于 2019-12-13 02:25:50
问题 Is there a way to cause Ant to not quit even if one of a target completes? For instance, several targets may execute, and if the first one stops,selenium will freeze.All the other testcases which are running parallel in other target stops. How to make ant to continue executing other targets,even if one completes. I tried giving -k at target level , but no use. We have failonerror set to true .Does that matter? Here is my build file : <target name="startServerRC" depends="startServerhub">

Where do we use this Constructor RemoteWebDriver(java.net.URL remoteAddress, Capabilities desiredCapabilities, Capabilities requiredCapabilities)

孤者浪人 提交于 2019-12-13 02:12:55
问题 I was going through Webdriver API and come across a constructor in RemoteWebdriver for which i didn't find any information. I have used the below constructor to configure selenium grid RemoteWebDriver(java.net.URL remoteAddress, Capabilities desiredCapabilities) Here is an other constructor which is there exactly below that, 'Capabilities requiredCapabilities' RemoteWebDriver(java.net.URL remoteAddress, Capabilities desiredCapabilities, Capabilities requiredCapabilities) Can any one please

Permission denied to access property “handleEvent”

孤人 提交于 2019-12-13 00:42:33
问题 I'm testing a web app in several browsers with the Selenium 2.45.0 grid. At one point (I suppose when Bugsnag was added to the app) some find_element functions started to fail in Firefox (still work in Safari) with the 'Permission denied to access property handleEvent error. It looks like there is a workaround for that: adding $driver -> get_active_element(); before calling $driver -> find_element... But this is awkward. Did anyone else face the same problem and find a more adequate solution?

How to connect to docker container from localhost

不想你离开。 提交于 2019-12-12 19:59:44
问题 I created a docker container which is running 2 java processes - one of the processes is listening on port 4444 and should have access from browser hitting the following URL: http://{host}:4444/grid/console How do I hit this URL from my browser on the host - connect to the container on port 4444? This is the response from docker inspect: [ { "Id": "3bef855324d8c78fcd3a7ac4e52d1641437f221ebe64af5651641d776cfa1bde", "Created": "2018-02-22T14:54:37.025854258Z", "Path": "/bin/bash", "Args": [],

Selenium Grid in C# Parallel execution with Nunit

陌路散爱 提交于 2019-12-12 18:08:18
问题 i just made the setup for selenium grid 2. The hub and the nodes are up and running. I'm using Selenium webdriver + C# + Nunit to run my tests, i want now to do the following: 1) Distribute the test cases among different nodes(Parallelism), for example node 1 running test x and node 2 running test y 2) I need to be able to configure the browser and the platform type for each node, what i'm able to do now is that i make one setup function and it uses the same platform and browser for all the

Can you use multiple instances of Edge on a Selenium Grid Node?

我们两清 提交于 2019-12-12 16:33:26
问题 Using the config below, I am only seeing one instance of Edge running on my node. When using chrome with a similar setup, I can run multiple browsers on the same node. Here is the config.json I am using: { "capabilities": [ { "browserName": "MicrosoftEdge", "maxInstances": 4 } ], "configuration": { "proxy": "org.openqa.grid.selenium.proxy.DefaultRemoteProxy", "maxSession": 5, "port": 7777, "register": true, "registerCycle": 5000, "hubPort": 4444, "hubHost": 192.168.56.101 } } I am running the

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 Grid: set chrome *binary* path

被刻印的时光 ゝ 提交于 2019-12-12 12:44:46
问题 Note: I am not asking about setting the path of the chrome driver . I want to run a Selenium node with a specific version of Chromium as opposed to the default Chrome installed on the system. The webdriver doc says I would need to pass a ChromeOptions object, but this is obviosuly impossible to do on the command line. I've tried manually adding a JSON that represents ChromeOptions to the command line (like below), but it does not have any effect. java.exe -jar selenium-server-standalone-2.47

How to maintain Selenium Grid?

时光毁灭记忆、已成空白 提交于 2019-12-12 09:18:10
问题 I have many VMs which are used as part of Grid. Some as RC and some as Hub. Due to the large number of VMs that is being used, it is a big task to maintain the grid now. To change the RC to point to a different hub, I will have to login to that machine kill the current RC run the java command again with a different hub URL Yes, I can use a batch script to restart all the machines. But what if I just want to change just one machine? Is it possible to create an application using JAVA RMI which