selenium-grid

how to allow mic/camera in edge web browse suing selenium

元气小坏坏 提交于 2019-12-24 11:23:36
问题 we have options.add_argument("--use-fake-ui-for-media-stream") options.add_argument("--use-fake-device-for-media-stream") to send fake media to chrome. Is there any such option available for edgedriver? and if what are those? 回答1: one can allow mic/video in edge using option = Options() #capabilities = webdriver.DesiredCapabilities.EDGE.copy() option.set_capability("dom.webnotifications.enabled", 1) option.set_capability("permissions.default.microphone", 1) option.set_capability("permissions

How to make sure the appium node is connected to only one phone?

泄露秘密 提交于 2019-12-24 07:37:25
问题 I run (all on one machine) multiple appium servers connected as nodes to a selenium-grid hub and I have multiple phones connected to my adb on port 5555 (in my case via WiFi). The issue I have with this is that two of the three phones have capabilities that are matching (Android 7.1.1, Chrome browser). So when I fire up a test for the nexus 9, if occupies the grid node for nexus 6. Or even the other way around, I ask to run the test on the nexus 6, this one get occupied, but the test runs on

Getting “The path to the driver executable must be set by the webdriver.gecko.driver ” while try to run selenium Grid code with Gecko driver

梦想与她 提交于 2019-12-24 06:18:09
问题 I am running basic selenium code with the help of selenium Grid . Below are the steps: Step 1 :- Downloaded the latest version of selenium Standalone server (3.4.0) ; Step 2 :- Created HUB by using command java - jar <path of selenium standalone server>\\selenium-server-standalone-3.4.0.jar -role hub -> run successfully ; Step 3 :- Created node using command java -jar selenium-server-standalone-3.4.0.jar -role hub -node http://localhost:4444/grid/register -> run successfully ; Step 4 :-

org.openqa.selenium.json.JsonException: Expected to read a START_MAP but instead have: END. Last 0 characters read while executing tests through Node

纵然是瞬间 提交于 2019-12-24 04:40:56
问题 I am new to Selenium and started learning it. But the Selenium Grid is not working for me. The server version used is selenium-server-standalone-3.14.0.jar. Using command, the hub and node are running. The code for adding nodes to hub is written using TestNG in Eclipse. The code is as follows: ChromeOptions options = new ChromeOptions(); options.setCapability(CapabilityType.PLATFORM_NAME, Platform.WIN10); options.setCapability(CapabilityType.BROWSER_NAME, "chrome"); driver = new

Remote Watir-Webdriver IE form field not recognizing text and keys

橙三吉。 提交于 2019-12-24 03:25:38
问题 I have been using Cucumber / Watir-Webdriver just fine with IE. In my tests, I go to a form field and enter data and click a save button. All actions work great. Recently I decided to go with Selenium Grid 2 to distribute tests across machines for performance reasons. It worked great with FF and Chrome but I began to see a problem with IE. Here's the problem: when I use Selenium Grid 2 to drive IE remotely, when it sends keystrokes (i.e. send_keys or .set "some string of text") the text is

TestNG Selenium Grid 2 not running tests in parallel

点点圈 提交于 2019-12-23 03:42:13
问题 I seem to be having an issue when attempting to run tests in parallel using TestNG alongside Selenium Grid 2. Although the right number of browsers are opened to match the amount of tests that I'm running , all instructions for all tests are being fired to the same browser window. For example, each test will open a page and attempt to log in. Four browser windows will open, but one browser window will navigate to the login page four times and then type the username in 4 times, whilst the rest

Understanding Selenium Grid2 implementation running on EC2

ぃ、小莉子 提交于 2019-12-22 19:48:06
问题 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

Selenium Python test against Selenium grid created from SeleniumHQ Docker images

两盒软妹~` 提交于 2019-12-22 09:59:31
问题 In brief How to run Python Selenium tests properly against Selenium Grid container created from SeleniumHQ Docker images? I also asked on SeleniumHQ here https://github.com/SeleniumHQ/docker-selenium/issues/521 The error & log 00 - the console error 01 - the hub log 02c - the chrome node log 02f - the firefox node log Full details I've tried this web search and similar search on our site and found none useful. OK with standalone I've succeeded in running this simple test against the

Selenium Grid2 - Is it possible to run 10 Chrome instances?

我的梦境 提交于 2019-12-22 05:15:14
问题 Currently Selenium Grid2 running with the default config shows that it can run 5 firefox browsers, 5 chrome browsers and 1 IE. With a max of 5 instances at the same time. How can I change this so that it runs 10 chrome instances at the same time? I have succesfully changed the maxsession parameter of the node with -maxSession 10 . However when I run 10 tests, the hub shows that 5 are in queue waiting to be executed. I dont know if this matters or not, but the hub itself shows a maxSession

Using Selenium Grid 2 with PHPUnit tests

与世无争的帅哥 提交于 2019-12-22 01:30:01
问题 I have recently written a lot of selenium 1 tests for a fairly complex project. They are all written in php and run smoothly on the selenium-server 1.0.7. Obviously with firefox 5 (and 6 released today) selenium server 1.0.7 is not working anymore. I've tried, but the server is just opening blank windows. Now I am trying to get those tests running on selenium grid. I managed to get a hub and a couple of remote-controls runnnig using grid v1, but they only open blank windows just like the old