selenium-grid

Selenium 2 Firefox Profile Change Location

[亡魂溺海] 提交于 2020-01-13 04:42:16
问题 For many weeks now, I have been looking around and I have not seen anything regards to changing the location the Firefox Profile saves to. I am using a specific Firefox profile, however, when the tests run the session is created in /tmp/. I would like the session to start up in a different location and save the files it uses in a location like: /var/tmp/. Is there any way to do this? Note: This is not a question as to where I get the RemoteWebDriver to use a specific Firefox profile. Edit: I

Extent report is not giving proper report on parallel execution

对着背影说爱祢 提交于 2020-01-11 14:01:56
问题 ReporterClass.Java: package POM_Classes; import com.aventstack.extentreports.AnalysisStrategy; import com.aventstack.extentreports.ExtentReports; import com.aventstack.extentreports.ExtentTest; import com.aventstack.extentreports.reporter.ExtentHtmlReporter; public class ReporterClass { public static ExtentHtmlReporter html; public ExtentReports extent; public ExtentTest test, suiteTest; public String testCaseName, testNodes, testDescription, category, authors; public void startResult() {

Extent report is not giving proper report on parallel execution

此生再无相见时 提交于 2020-01-11 14:00:06
问题 ReporterClass.Java: package POM_Classes; import com.aventstack.extentreports.AnalysisStrategy; import com.aventstack.extentreports.ExtentReports; import com.aventstack.extentreports.ExtentTest; import com.aventstack.extentreports.reporter.ExtentHtmlReporter; public class ReporterClass { public static ExtentHtmlReporter html; public ExtentReports extent; public ExtentTest test, suiteTest; public String testCaseName, testNodes, testDescription, category, authors; public void startResult() {

Error forwarding the new session: Selenium Grid 2

最后都变了- 提交于 2020-01-11 03:57:04
问题 I have taken latest Selenium Server which is 2.45.0 from here. Followed the documentation and started the hub with the following command java -jar selenium-server-standalone-2.45.0.jar -role hub -hubConfig HubConfigFile.json And, the JSon file content is: { "host": 10.5.0.21, "port": 4444, "newSessionWaitTimeout": -1, "servlets" : [], "prioritizer": null, "capabilityMatcher": "org.openqa.grid.internal.utils.DefaultCapabilityMatcher", "throwOnCapabilityNotPresent": true, "nodePolling": 5000,

Create and upload a file on selenium grid

£可爱£侵袭症+ 提交于 2020-01-10 02:56:25
问题 One of tthe test cases that I have is to upload a file to the application. Witouth grid this can be easily done by creating a bogus file and get absolute path of the file and fill the input field and click upload. However when I am using grid, the file is not on the machine that hosted the node. Is there anyway to either send the file to the node or tell the node to create the file and get the absolute path. 回答1: It's actually pretty simple once you know how, just set a local file detector.

Checking HttpResponse OK (200) with Selenium WebDriver [duplicate]

久未见 提交于 2020-01-09 07:29:10
问题 This question already has answers here : Checking HTTP Status Code in Selenium (7 answers) Closed 3 years ago . I am using Selenium Remote WebDriver. I read all links from csv file and run test against those links. But sometimes I get 404 response. Is there any way in Selenium WebDriver to check that we get HTTP response 200? 回答1: There is no way to get HTTP status codes directly in the WebDriver API. It has been a long-standing feature request, which will likely never be implemented in the

How to fully close Opera browser via RemoteWebDriver

夙愿已清 提交于 2020-01-07 04:04:26
问题 I'm attempting to add Opera to a node on our Selenium Grid but running into a problem closing the Opera browser. In Opera, closing the last tab in a browser does not close the browser. It instead launches something called Speed Dial. This is apparently the default behavior in Opera. I've tried to disable Speed Dial but it doesn't appear to prevent this behavior. Due to the tests running via RemoteWebDriver, I can't just call a script on the Opera node to close the window. I've tried the

Selenium Grid Demo Test cases fail

假如想象 提交于 2020-01-06 05:36:09
问题 I am using selenium grid for automated testing. I have followed the official documents to install the grid. But after running the run-demo-in-parallel, the test casses fail with the following error in the target folder. Parameter #1 Parameter #2 Parameter #3 Parameter #4 localhost 4444 *firefox http://images.google.com **Could not contact Selenium Server; have you started it on 'localhost:4444'** ? Read more at http://seleniumhq.org/projects/remote-control/not-started.html Connection refused:

selenium-server grid2 start problem. NoClassDefFoundError exception

佐手、 提交于 2020-01-06 04:56:08
问题 java -jar selenium-server-2.1.0.jar -role rc -hub http://localhost:4444/grid/register -port 5555 2.8.2011 12:14:12 org.openqa.grid.selenium.GridLauncher main INFO: Launching a selenium grid node Exception in thread "main" java.lang.NoClassDefFoundError: org/json/JSONExceptio n at org.openqa.grid.selenium.GridLauncher.main(GridLauncher.java:57) Caused by: java.lang.ClassNotFoundException: org.json.JSONException at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController

Running multiple nightwatch instances

爷,独闯天下 提交于 2020-01-05 04:03:50
问题 At my current company, we have about 10 websites.. That all extend from a single codebase. Whenever we change something in the 'core' codebase, we want to run tests on all 10 websites in parallel. Its a lot easier in the cloud, but we also want to be able to do it locally. For this to happen, I basically start multiple Selenium instances, all with its own port, and set a different nightwatch launch_url for every instance So I made a NodeJS script.. That creates a nightwatch.json for every