Hot answers tagged

4 votes
Accepted

Geckodriver: How to use "moz:firefoxOptions" on node.config for selenium grid

Unfortunatelly I found only workaround solution (e.g. if you need several different Firefox versions on a single station): nodeConfig_1.json { "capabilities": [ { "browserName": "firefox"...
Darken Raven's user avatar
4 votes

Failed to connect to Safari driver through Selenium Grid

public class Selenium_Grid { WebDriver driver; String baseUrl, nodeUrl; @BeforeTest public void setUp() throws MalformedURLException { baseUrl = "www.fb....
Bharat Mane's user avatar
  • 6,785
3 votes

What is node in Selenium Webdriver GRID?

A Selenium Grid node is a computer system (virtual or physical) that is connected to a Selenium Grid hub. If you have 5 different browsers installed on a node it is still is just one node. Per node ...
Niels van Reijmersdal's user avatar
3 votes

What to do if Relative Xpath is keep on changing

Xpath keeps changing? You can try using other ways to uniquely identify an element, for example, CSS selector. Unlike Xpath, which focuses on navigation, CSS selector focuses on element attributes. ...
Yu Zhang's user avatar
  • 9,952
3 votes

Need to work on Chrome and IE concurrently in Selenium; Any possible workaround?

In your code you should instantiate two drivers. One instance for Chrome and the second one for IE. Now you can operate with both the browsers. Below is the example in Java: public static void main(...
Alexey R.'s user avatar
  • 11.6k
3 votes
Accepted

Are other classes able to access the webdriver instance when extending test base class? Getting NullPointerException Error

Agree with @Dale Emery. Use this code: public class WatchTV { WebDriver driver; WebDriverWait wait; int waitseconds = 60; public WatchTV(WebDriver driver){ this.driver = ...
kotoj's user avatar
  • 325
2 votes

Are other classes able to access the webdriver instance when extending test base class? Getting NullPointerException Error

Your Setup() method runs (and initializes the driver) only in the Pg_WatchTV_Test class. Merely extending TestBase does not cause TestNG to run your setup method. It runs setup methods (annotated by @...
Dale Emery's user avatar
  • 4,485
2 votes

How to make AutoIt script identify browse window when run in remote machine with Selenium grid?

I assume that the remote machine is locked, and thus AutoIT can not work. It works on your desktop because it is not locked. Solution: Keep the desktop unlocked (no screensaver etc). Of course, this ...
stevenz's user avatar
  • 111
2 votes
Accepted

Unable to take screenshots on RemoteWebDriver - running tests thru Selenium Grid

SceenShotImageFormat was a relatively recent change in Selenium for .Net core, can you try with ImageFormat if you're not using .Net core and if that works I would recommend upgrading your entire ...
Paul Muir's user avatar
  • 3,282
2 votes

Unable to run remote tests using Selenium Grid Chrome in MAC OS

Be sure that you have enabled automated test runs for Safari: Ensure that the Develop menu is available. It can be turned on by opening Safari preferences (Safari > Preferences in the menu bar), ...
kirbycope's user avatar
  • 4,090
2 votes

How can I run the same scripts in three different environments

Here is the general description of what you should do: Set up SeleniumGrid hub Set up nodes within different environments you would like to run your tests Isolate your test code within a separate ...
Alexey R.'s user avatar
  • 11.6k
2 votes

What to do if Relative Xpath is keep on changing

Selectors like Xpath and CSS also support parent child relations. You need to find a element in the tree that you can certainly find. From there you can go the N-th child and on and on. In your case ...
Niels van Reijmersdal's user avatar
2 votes

How to view Description column in Gridview Microsoft test manager

I don't see the "Description" named column under Column Options via List View or Grid View. If the column is not listed under Column Options > Available Columns, then the column name does not exist ...
Brian McCarthy's user avatar
1 vote

Running test suite setup once in every node of Selenium Grid

Try using [SetUp] attribute for your UI configuration method. This will ensure that the UI configuration is executed for every test. Hope this helps
VSD's user avatar
  • 97
1 vote

How to record HTTP traffic in Selenium Grid?

This is the suitable tool for your problem - BrowserMobProxy. With this, you could capture the traffic as a Har file. You could also block and bypass any request after analyzing the response to ...
Vishal's user avatar
  • 1,252
1 vote

Selenium: how to move physical mouse pointer outside the browser window

Selenium only works with a browser-driver. So you cannot move outside the working area, i.e. your browser. You can use java method Actions to perform similar kind of tasks. If you have the coordinate ...
Dave's user avatar
  • 131
1 vote

Error in selenium grid simple test script

Usually this issue come due to version of TestNG Plugin. So please upgrade your TestNG plugin Change Log of TestNG Issue Reported
Shailendra Rathore's user avatar
1 vote
Accepted

How to handle file upload through windows form when using selenium grid?

Maybe this will help someone In my case, there was file upload form, thats hidden. So after making it visible (in this case, change class), its possible to use SendKeys and send file path to that ...
George's user avatar
  • 1,412
1 vote

Blank Browser launches on Selenium Grid Hub with Every Test Run on Node

I figured it out. Removed driver=new FirefoxDriver(); because I'm already using driver = new RemoteWebDriver(new URL(Node), capabilities); so it is not needed. That was causing a duplicate blank ...
seleniumappiumnewbie's user avatar
1 vote

Parallel Testing with Selenium Grid - Static classes have driver issues

I haven't found a solution, rather an alternative. I have used Jenkins and used to BuildFLow plugin to create a Build Flow job. I use this job to call 3 other jobs to run parallel. The 3 other jobs ...
colin's user avatar
  • 221
1 vote
Accepted

Parallel Testing with Selenium Grid - Static classes have driver issues

I would assume that to run test cases in parallel, you need to have multiple instances of the same test - which is not possible if classes are static. In Agile development, when deciding which ...
Peter M. - stands for Monica's user avatar
1 vote

How to write good test cases for filters in Grid?

As per my understanding It is look like some charts or report related application page. Try with following approach : 1. Make BVT / Smoke scenarios : First determine the smoke scenarios (which ...
Sagar007's user avatar
  • 1,330
1 vote

How to write good test cases for filters in Grid?

Initially start writing test cases with single filter with all the condition like 1. Exact match 2. Like with Next start with a combination of fields in positive and negative condition with all ...
Anand Natarajan's user avatar
1 vote

Tomcat Server when used amongst Selenium Grid setup

Yes you can run the jsp page in all nodes because that jsp page is deployed to server so from any system you can access that jsp page.There is no connection with selenium grid here.Even your hub and ...
QAMember's user avatar
  • 1,520
1 vote

Tomcat Server when used amongst Selenium Grid setup

Your jsp/tomcat server is basically another webpage/webapp. As such, as long as it it accessible from all the nodes, there is no need to duplicate it. This setup will mean you will need to put extra ...
ECiurleo's user avatar
  • 2,043
1 vote

Selenium Grid2 - IOException thrown while closing Closeable.

We had faced same issues in the past. On node server before launching new node check any existing instance was running. Forcefully close the browser instances before again passing control back. Added ...
amogh's user avatar
  • 26
1 vote

Alternative to Selenium Grid Console?

There is an alternative to Selenium Grid itself compatible with WebDriver protocol (so don't need to change tests). It consists of two pieces: Selenoid - a lightweight Selenium server replacement ...
vania-pooh's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible