selenium-grid

How to use Selenium Grid to run some commands on the node and system commands locally

北城余情 提交于 2019-12-12 01:16:02
问题 I'm trying to solve a problem and I was hoping I could do it with Selenium Grid but I'm not entirely sure that it's possible. Here's my problem...I'm developing test cases using Selenium WebDriver and I need my tests to run on a Windows machine however the AUT runs on a Linux server. I have several tools that only run on Linux and I would like to be able to run some commands/tests on the Windows machine and others in the Linux server. For instance Test Starts -> Firefox launches (Windows

Running features cucumber in parallel in different browser using selenium testNG

人走茶凉 提交于 2019-12-11 18:17:32
问题 How can i run cucumber features using testNG and selenium or cucumber-JVM i'm new in this but after my researsh i think that cucumber jvm doesn't work in paralell for me i added also the surefire plugin now i try to test with TESTNG my testNg.xml : <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd"> <suite name="run test in parallel Suite" parallel="tests" verbose="1" configfailurepolicy="continue" thread-count="2"> <listeners> <listener classname

Sequential execution of WebDriver suite - C# // Selenium Grid - All Local

喜欢而已 提交于 2019-12-11 15:24:18
问题 I have been trying to find a good solution to this problem for a while now and have yet to come up with a strong solution. I have created a test suite using WebDriver and C# to run our test suites against our sites. My only remaining issue is I want to find a way to have the full suite execute in FireFox, Chrome then IE. So basically, I need the test to complete in FireFox, then complete in Chrome and finally complete in IE in order. I have researched into Selenium Grid and am currently

Erroneous log on hub (Marking the node http://192.168.137.1:5566 as down: cannot reach the node for 2 tries) and connection timeout on grid console

余生颓废 提交于 2019-12-11 15:15:32
问题 OS: Windows 10 Selenium Version: 3.13.0 Browser: Chrome Browser Version: Version 67.0.3396.99 (Official Build) (64-bit) Expected Behavior -Node should be registered successfully Actual Behavior - Erroneous log on hub (Marking the node http://192.168.137.1:5566 as down: cannot reach the node for 2 tries) and connection timeout on grid console Steps to reproduce : Start hub by using : java -jar selenium-server-standalone-3.13.0.jar -role hub Start node by using : java -Dwebdriver.chrome.driver=

Run applescript using java on selenium webdriver(Grid) in sauce lab

限于喜欢 提交于 2019-12-11 09:56:14
问题 I am facing certification security issue[showing popup with continue] when we launch https URL on MAC safari browser using selenium remote web-driver(using selenium grid) To click "continue" button, I wrote the apple script and ran manually its working fine. Now the problem is not able to run the apple script in java. I tried with below ways:: getting java.io.IOException: Cannot run program "osascript": CreateProcess error=2, The system cannot find the file specified, error getting displayed

Selenium Grid DriverSafe tests distribution

a 夏天 提交于 2019-12-11 09:39:53
问题 I have setup the grid as mentioned in this post. Also, I have the test classes setup as in this post. Since I wanted each driverInstance to use its own someController and someData , I changed the BaseTest as follows: public abstract class BaseTest { String testFolder; String testName; protected String envName; protected Configuration config; protected String host; protected RemoteWebDriver driver; protected String proxy; protected SomeData someData; protected SomeController someController;

Selenium Server Setup Errors

落花浮王杯 提交于 2019-12-11 09:14:26
问题 I am trying to start a Selenium server in the command line, but it returns the following message: Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved. C:\Users\a607270>java -jar selenium-server-standalone-3.4.0.jar -role hub 09:49:50.198 INFO - Selenium build info: version: '3.4.0', revision: 'unknown' 09:49:50.199 INFO - Launching Selenium Grid hub 2017-05-30 09:49:52.134:INFO::main: Logging initialized @2625ms to org.seleniumh q.jetty9.util.log

How to move visible mouse pointer using selenium web driver?

血红的双手。 提交于 2019-12-11 08:43:27
问题 I am new to Selenium. I am using gridlastic as test environment. I have gone through Actions class for selenium which has methods to move mouse as well as got the mouse instance via web driver by calling getMouse() and tried to move the mouse but dint succeed. @Test(enabled = true) public void test_site() throws Exception { Coordinates elementLocation = null; driver.get("https://www.amazon.com"); Mouse mouse = ((HasInputDevices) driver).getMouse(); System.out.println(mouse.toString()); if

WebDriverException: Error forwarding the new session Error forwarding the request Connect to my_ip:5555 [/my_ip] failed: Connection timed out

送分小仙女□ 提交于 2019-12-11 05:29:17
问题 I installed selenium node on AWS windows and started it. And I setup Jenkins, git, Seleniuim hub on AWS Linux. When i'm building app on Jenkins, selenium hub is trying to connect to selenium node of AWS windows with private IP address . And i'm getting following exception: org.openqa.selenium.WebDriverException: Error forwarding the new session Error forwarding the request Connect to windows_private_ip:5555 [/windows_private_ip] failed: Connection timed out (Connection timed out) Command

How to solve SessionNotCreatedException exception when trying to create FIREFOX driver on LINUX through Selenium Grid standalone jar 3.14

余生颓废 提交于 2019-12-11 04:54:01
问题 I am getting org.openqa.selenium.SessionNotCreatedException exception when trying to create driver through Selenium standalone jar 3.14. I have used below commands to start hub and node 1) java -jar selenium-server-standalone-3.141.59.jar -role hub 2) java -jar selenium-server-standalone-3.141.59.jar -role webdriver -hub http://192.xxx.xx.xxx:4444/grid/register -port 5556 -browser browserName=chrome,maxInstance=3 -browser browserName=firefox,maxInstance=3 Trying to create driver through below