Most voted questions in Selenium

0 votes
2 answers

Selenium WebDriver Error: AttributeError: 'list' object has no attribute 'click'

If you are going to use a ...READ MORE

Jan 17, 2020 in Selenium by lwazi
34,991 views
0 votes
1 answer

browse a website using selenium webdriver

You can use the below code: public class ...READ MORE

Jun 8, 2018 in Selenium by Meci Matt
• 9,460 points
519 views
0 votes
1 answer

Switching browsers in Selenium WebDriver

You can try the below code: private ...READ MORE

Jun 8, 2018 in Selenium by Meci Matt
• 9,460 points
410 views
0 votes
1 answer

Not able to call onclick datepicker function python selenium

To pass customized dates e.g. 2017/07/14. You have ...READ MORE

Jun 8, 2018 in Selenium by Samarpit
• 5,910 points
3,563 views
0 votes
1 answer

Returning null element when using following and preceding XPath selector

To identify the <input> tag with respect to the <label> tag ...READ MORE

Jun 8, 2018 in Selenium by Samarpit
• 5,910 points
2,940 views
0 votes
1 answer

Checking HTTP Status in Selenium

This might not be the best use ...READ MORE

Jun 7, 2018 in Selenium by Meci Matt
• 9,460 points
773 views
0 votes
1 answer

Selenium WebDriver.get(url) not working

It is a Selenium defect. Problem is ...READ MORE

Jun 7, 2018 in Selenium by Meci Matt
• 9,460 points
8,860 views
0 votes
2 answers

How to open a browser window in full screen using Selenium WebDriver with C#

Hi , we have inbuilt method Maximize(). driver.Manage().Wind ...READ MORE

Sep 6, 2020 in Selenium by Sri
• 3,190 points
15,592 views
0 votes
1 answer

Click a link within an iFrame which opens a new tab and switch to it

While switching the TAB induce WebDriverWait and switch accordingly. Below code ...READ MORE

Jun 7, 2018 in Selenium by Samarpit
• 5,910 points
4,319 views
0 votes
1 answer

There is an problem with the Recursion in Java. Method is returning empty list

checkMonth(driver) Ignore the List returned by that call. Perhaps you want ...READ MORE

Jun 6, 2018 in Selenium by jonss
858 views
0 votes
1 answer

How to select first instance of a button in a table row based on cell content by XPath

This xpath should give you all the ...READ MORE

Jun 6, 2018 in Selenium by jons
14,885 views
0 votes
1 answer

Fluent wait example with code

When we try to test the presence ...READ MORE

Jun 5, 2018 in Selenium by walter 123
• 240 points
13,490 views
0 votes
1 answer

How To move physical mouse pointer in selenium and c#

You can't show the mouse pointer moving and ...READ MORE

Jun 4, 2018 in Selenium by Samarpit
• 5,910 points
3,637 views
0 votes
1 answer

How to launch new activity for Appium Android?

Firstly, test if the activity you want ...READ MORE

Jun 4, 2018 in Selenium by Samarpit
• 5,910 points
3,418 views
0 votes
2 answers

what is the need of xpath when you have attributes like id ,class,name in selenium?

some of the controls not have id ...READ MORE

Sep 4, 2020 in Selenium by Sri
• 3,190 points
1,581 views
0 votes
2 answers

What is following-sibling in selenium?

Xpath=//*[@type='text']//following::input[2] READ MORE

Sep 4, 2020 in Selenium by Sri
• 3,190 points
11,327 views
0 votes
1 answer

preceding-sibling in xpath, Selenium?

Here, ul has 8 children(8-li) on total.  And, ...READ MORE

Jun 1, 2018 in Selenium by Vinita
• 220 points
13,811 views
0 votes
1 answer

Selenium WebDriver typing speed is slow in input text field

It worked for me in the 64bit ...READ MORE

Jun 1, 2018 in Selenium by Meci Matt
• 9,460 points
12,444 views
0 votes
1 answer

Selenium WebDriver 2.4.0 alert checking

You can go for the below option: driver.switch_to.alert.accept ...READ MORE

Jun 1, 2018 in Selenium by Meci Matt
• 9,460 points
486 views
0 votes
1 answer

Benefits of using Marionette FirefoxDriver instead of the old Selenium FirefoxDriver in Selenium WebDriver

The main advantage of using Marionette Gecko ...READ MORE

May 31, 2018 in Selenium by Meci Matt
• 9,460 points
641 views
0 votes
1 answer

Firefox opens first run page in WebDriver

In C# with Selenium you can use ...READ MORE

May 31, 2018 in Selenium by Meci Matt
• 9,460 points
489 views
0 votes
1 answer

Preferring CSS over XPath in Selenium

Advantages of using CSS: They are faster More readable CSS ...READ MORE

May 31, 2018 in Selenium by Meci Matt
• 9,460 points
414 views
0 votes
1 answer

Selenium with C#

using OpenQA.Selenium.Firefox; using OpenQA.Selenium; class Demo { ...READ MORE

May 31, 2018 in Selenium by Meci Matt
• 9,460 points
1,152 views
0 votes
1 answer

Need details about Page load strategy for Chromedriver

According to WebDriver docs, when Page Loading ...READ MORE

May 31, 2018 in Selenium by king_kenny
• 3,710 points
7,438 views
0 votes
1 answer

Can we control the test execution speed in WebDriver (using Ruby)

The methods controlling execution speed in WebDriver ...READ MORE

May 31, 2018 in Selenium by king_kenny
• 3,710 points
2,097 views
0 votes
1 answer

Executing Selenium test script from command line

You will require Selenium RC which you ...READ MORE

May 30, 2018 in Selenium by Meci Matt
• 9,460 points
3,456 views
0 votes
1 answer

Maximizing browser window in Selenium WebDriver using C#

You can use the JavascriptExector as follows: public void maximize() ...READ MORE

May 30, 2018 in Selenium by Meci Matt
• 9,460 points
2,073 views
0 votes
1 answer

How to enable WebGL if i'm using headless chrome on Ubuntu?

Use this on Chrome for using osmesa sudo ...READ MORE

May 30, 2018 in Selenium by sniffy_god
• 780 points
3,108 views
0 votes
1 answer

Between By.XPath and By.ID, which is the better for locating elements?

Technically speaking, By.ID() is the faster technique ...READ MORE

May 30, 2018 in Selenium by sniffy_god
• 780 points
12,154 views
0 votes
1 answer

errors when using class names locators. Getting compound classes are not supported

Pretty straight forward..If your class name includes ...READ MORE

May 29, 2018 in Selenium by sniffy_god
• 780 points
2,738 views
0 votes
1 answer

Using partial Id in Selenium WebDriver

You can use CSS Selector for this, ...READ MORE

May 28, 2018 in Selenium by Meci Matt
• 9,460 points
2,714 views
0 votes
1 answer

Multi threading in Selenium WebDriver

WebDriver is not safe for multithreading.  Thread-safety is ...READ MORE

May 28, 2018 in Selenium by Meci Matt
• 9,460 points
10,007 views
0 votes
1 answer

Error running tests with Selenium WebDriver - FirefoxDriver error: Failed to start up socket within 45000

Normally a socket exception occurs when the ...READ MORE

May 25, 2018 in Selenium by sniffy_god
• 780 points
1,119 views
0 votes
1 answer

Selenium: Executing multiple tests at the same time

Probably your not aware of Selenium Grid ...READ MORE

May 25, 2018 in Selenium by sniffy_god
• 780 points
1,144 views
0 votes
1 answer

Sending cookies using Selenium WebDriver

You can create cookies using Java API ...READ MORE

May 25, 2018 in Selenium by Meci Matt
• 9,460 points
1,244 views
0 votes
1 answer

Selenium ChromeBrowser get() method is not working

Make sure you are passing a valid ...READ MORE

May 25, 2018 in Selenium by Samarpit
• 5,910 points
2,458 views
0 votes
1 answer

How to Stop a For-Loop at a special number using Python

driver.find_elements_by_tag_name() returns a list of WebElements. You can use options ...READ MORE

May 25, 2018 in Selenium by Samarpit
• 5,910 points
453 views
0 votes
1 answer

Multiple tabs in Selenium WebDriver

If you have a link that opens a ...READ MORE

May 25, 2018 in Selenium by Meci Matt
• 9,460 points
1,475 views
0 votes
1 answer

Moving down and moving left the scroll bar that exists within the webpage

Below code will work: Do find the ...READ MORE

May 24, 2018 in Selenium by Samarpit
• 5,910 points
12,398 views
0 votes
1 answer

Identifying the page iframe in Selenium using Java Code

Open the page in a browser and ...READ MORE

May 24, 2018 in Selenium by Samarpit
• 5,910 points
1,580 views
0 votes
1 answer

SELECT statement in POM-TestNG classes in java selenium

Initialize the WebDriver driver and add @BeforeTest method in your TestNG ...READ MORE

May 24, 2018 in Selenium by Samarpit
• 5,910 points
4,105 views
0 votes
1 answer

Error selenium (rich:calendar)

See below code: public static void selecionarDataCalendario(By by,WebDriver ...READ MORE

May 24, 2018 in Selenium by Samarpit
• 5,910 points
333 views
0 votes
1 answer

Difference between submit() vs click() in Selenium Webdriver

The submit() function is specifically for forms ...READ MORE

May 24, 2018 in Selenium by sniffy_god
• 780 points
7,420 views
0 votes
1 answer

Scrolling down in Protractor

You need to wait for the scrolling ...READ MORE

May 24, 2018 in Selenium by sniffy_god
• 780 points
9,707 views
0 votes
1 answer

Implicit wait & Explicit wait in selenium WebDriver

Implicit Wait:  While loading a web page in ...READ MORE

May 24, 2018 in Selenium by Meci Matt
• 9,460 points
1,413 views
0 votes
1 answer

To check that the web page is loaded or not using Selenium Web Driver?

The solution is using Implicit Wait which ...READ MORE

May 24, 2018 in Selenium by Meci Matt
• 9,460 points
24,801 views
0 votes
1 answer

Locating child nodes in selenium WebDriver

In this situation you can try doing ...READ MORE

May 24, 2018 in Selenium by Meci Matt
• 9,460 points
10,716 views
0 votes
1 answer

Wait til an element appears in Selenium?

You should call ignoring with exception to ignore till ...READ MORE

May 24, 2018 in Selenium by Meci Matt
• 9,460 points
452 views
0 votes
1 answer

Need to know how phantomjs execution is stopped

Actually, the .close() method is not the ...READ MORE

May 24, 2018 in Selenium by sniffy_god
• 780 points
435 views
0 votes
1 answer

Selenium WebDriver for retrieving HTML input value

Try  element.getAttribute("value") The text property is for text within ...READ MORE

May 24, 2018 in Selenium by sniffy_god
• 780 points
3,139 views