Most voted questions in Selenium

0 votes
1 answer

How to run a selenium-server-standalone?

java -jar seleniumjar.jar -Dwebdriver.chrome.driver=./chromedriver If you want to ...READ MORE

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

Selenium WebDriver and browsers select file dialog

If you are trying to select a ...READ MORE

Sep 3, 2018 in Selenium by Meci Matt
• 9,460 points
10,366 views
0 votes
1 answer

Handling a popup window using selenium

This is a code I use when ...READ MORE

Aug 31, 2018 in Selenium by Meci Matt
• 9,460 points
5,161 views
0 votes
1 answer

Closing all opened tabs except the first main tab using web-driver

Get all the window handles then iterate ...READ MORE

Aug 31, 2018 in Selenium by Meci Matt
• 9,460 points
6,132 views
0 votes
2 answers

Tried doing automation of drop down with click or type into & select item.

Hello @Bharti, I was using the same ...READ MORE

Dec 20, 2018 in Selenium by Priyaj
• 58,090 points
471 views
0 votes
1 answer

How to wait for the webpage to load in selenium using java

Firstly, when you launch a web application, ...READ MORE

Aug 29, 2018 in Selenium by bug_seeker
• 15,520 points
1,720 views
0 votes
1 answer

How to create a executable jar file for TestNG and the runnnig point should be the Xml file

Use Eclipse Export Wizard. While exporting, select "Create ...READ MORE

Aug 24, 2018 in Selenium by Meci Matt
• 9,460 points
7,717 views
0 votes
1 answer

Selenium WebDriver operates very slow

Allowing WebDriver to attach to a running browser - ...READ MORE

Aug 24, 2018 in Selenium by Meci Matt
• 9,460 points
4,644 views
0 votes
1 answer

Chrome driver makes screenshot just of visible part of page

This is a known bug: https://code.google.com/p/chromedriver/issues/detail?id=294 (Only for Chrome ...READ MORE

Aug 23, 2018 in Selenium by Meci Matt
• 9,460 points
545 views
0 votes
1 answer

Python Selenium WebDriver drag-and-drop

I have verified that this does in ...READ MORE

Aug 23, 2018 in Selenium by Meci Matt
• 9,460 points
4,007 views
0 votes
1 answer

Login popup window using selenium webdriver?

Follow this steps: 1) Open the FireFox browser 2) ...READ MORE

Aug 23, 2018 in Selenium by Meci Matt
• 9,460 points
858 views
0 votes
1 answer

How to use SendKeys (webdriver) command in Rich Text editor that is located in iframe

Send keys directly is the approach that ...READ MORE

Aug 23, 2018 in Selenium by Meci Matt
• 9,460 points
8,992 views
0 votes
2 answers

How to know the exact time to load a page using Selenium WebDriver?

long start = System.currentTimeMillis(); driver.get("Some url"); long finish = ...READ MORE

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

Screenshot using PhantomJS in C#

Here is how to take the screenshot ...READ MORE

Aug 23, 2018 in Selenium by Meci Matt
• 9,460 points
2,130 views
0 votes
1 answer

Send keys control + click in Selenium with Python bindings

Use an ActionChain with key_down to press the control key, and key_up to ...READ MORE

Aug 23, 2018 in Selenium by Meci Matt
• 9,460 points
12,364 views
0 votes
1 answer

Using Extensions with Selenium - Python

You should use chrome web driver options to set ...READ MORE

Aug 23, 2018 in Selenium by Meci Matt
• 9,460 points
3,988 views
0 votes
1 answer

How to open a new window on a browser using Selenium WebDriver for python?

You can try the below code: driver = ...READ MORE

Aug 23, 2018 in Selenium by Meci Matt
• 9,460 points
6,146 views
0 votes
1 answer

Pass driver ChromeOptions and DesiredCapabilities?

You can add ChromeOptions to DesiredCapabilities then create the driver with ...READ MORE

Aug 23, 2018 in Selenium by Meci Matt
• 9,460 points
2,484 views
0 votes
1 answer

Selenium python find_element_by_class_name() stopped working from v 2.2 to 2.21 — not able to use 'Compound Class Name'

The problem about WebDriver is that it ...READ MORE

Aug 23, 2018 in Selenium by Meci Matt
• 9,460 points
5,002 views
0 votes
1 answer

Verify that an element exist in Selenium 2 or not

If you are testing using JUnit and ...READ MORE

Aug 23, 2018 in Selenium by Meci Matt
• 9,460 points
5,355 views
0 votes
1 answer

How to get status code by using selenium.py (python code)

Unfortunately, Selenium does not provide this information ...READ MORE

Aug 16, 2018 in Selenium by Meci Matt
• 9,460 points
6,175 views
0 votes
1 answer

How to close tab in WebDriver or Protractor

Switch to the newly opened tab. Close ...READ MORE

Aug 16, 2018 in Selenium by Meci Matt
• 9,460 points
4,239 views
0 votes
1 answer

selenium 2 chrome driver

Try this System.setProperty("webdriver.chrome.driver", "C:\\pathto ...READ MORE

Aug 13, 2018 in Selenium by Samarpit
• 5,910 points
532 views
0 votes
1 answer

How to start headless chrome in incognito mode?

You are missing a single -... "--incognito" READ MORE

Aug 13, 2018 in Selenium by Samarpit
• 5,910 points
2,723 views
0 votes
1 answer

Single .exe file embedding both chromedriver and geckodriver into it

Yeah, it is possible. You could start ...READ MORE

Aug 11, 2018 in Selenium by DataKing99
• 8,240 points
1,344 views
0 votes
8 answers

How to open a link in new tab of chrome browser using Selenium WebDriver?

This below code works for me in ...READ MORE

Dec 14, 2020 in Selenium by Gitika
• 65,910 points
101,821 views
0 votes
1 answer

Reading text using selenium webdriver XPath

I don't know about how to do ...READ MORE

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

Getting current page url with selenium

If you are having issues with .get(), then ...READ MORE

Aug 9, 2018 in Selenium by Samarpit
• 5,910 points
5,975 views
0 votes
1 answer

How to disable cookies using webdriver for Chrome and FireFox JAVA?

The solution for Firefox is below: FirefoxProfile profile ...READ MORE

Aug 8, 2018 in Selenium by Meci Matt
• 9,460 points
7,039 views
0 votes
1 answer

How do I assert an element is focused?

Since expect expects to be called with a promise, ...READ MORE

Aug 8, 2018 in Selenium by Meci Matt
• 9,460 points
2,831 views
0 votes
1 answer

Click the javascript popup through webdriver

Python Webdriver Script: from selenium import webdriver browser = ...READ MORE

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

Why is Selenium InternetExplorerDriver very slow in debug mode (visual studio 2010 and IE9)

For me, the fix was to switch ...READ MORE

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

How to Hover using Mouse in python using Webdriver

from selenium.webdriver.common.action_chains import ActionChains def hover(self): ...READ MORE

Aug 8, 2018 in Selenium by Meci Matt
• 9,460 points
2,227 views
0 votes
1 answer

How do I get current URL in Selenium Webdriver using Python?

Use current_url element. Example: print browser.current_url READ MORE

Aug 8, 2018 in Selenium by Meci Matt
• 9,460 points
25,699 views
0 votes
1 answer

How to Call a Class From another class?

Suppose you have two classes: Class1: public class Class1 ...READ MORE

Aug 8, 2018 in Selenium by Meci Matt
• 9,460 points
50,996 views
0 votes
1 answer

Get text from CSS property “content” on a - before pseudo element in Selenium WebDriver

I am not sure if WebDriver can retrieve ...READ MORE

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

Wait until page loads before click() using Selenium Webdriver

Change the following guestlogin_button = wait.until(EC.visibility_of_element_located((By.id, ".ch4_loginGuestBtn"))) to guestlogin_button = ...READ MORE

Aug 8, 2018 in Selenium by Samarpit
• 5,910 points
4,231 views
0 votes
1 answer

How to replace remote resources with local resource in a page with Selenium?

You could change URL for that script ...READ MORE

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

Browser compatibility with selenium for testing forms

To use the old Selenium IDE you need Firefox ...READ MORE

Aug 6, 2018 in Selenium by Samarpit
• 5,910 points
593 views
0 votes
1 answer

Getting android.webkit.WebView contents as a String using Appium

Below will help you: public final String WEBVIEW ...READ MORE

Aug 6, 2018 in Selenium by Samarpit
• 5,910 points
2,741 views
0 votes
1 answer

Preserving date modified when retrieving file using Apache FTPClient

Below will help you: public boolean retrieveFile(String path, ...READ MORE

Aug 3, 2018 in Selenium by Samarpit
• 5,910 points
1,102 views
0 votes
1 answer

How to set Page Load Timeout using C# and Selenium Webdriver

Check this out C# WebDriver API now contains ...READ MORE

Aug 3, 2018 in Selenium by Samarpit
• 5,910 points
5,845 views
0 votes
3 answers

How to set Page Load Timeout using C# using Selenium WebDriver

driver.Manage().Timeouts().PageLoad = TimeSpan.FromSeconds(15); READ MORE

Apr 17, 2019 in Selenium by Tim Muir
9,427 views
0 votes
1 answer

Read a dynamic value using Selenium

You can use the following line of ...READ MORE

Aug 2, 2018 in Selenium by Samarpit
• 5,910 points
5,433 views
0 votes
1 answer

How to get list of tests from Test Explorer in VS

Select all tests in Test Explorer and ...READ MORE

Aug 1, 2018 in Selenium by Samarpit
• 5,910 points
2,371 views
0 votes
1 answer

Error message in Protractor while using “webdriver-manager update” command

Add proxy for your network webdriver-manager update --proxy ...READ MORE

Aug 1, 2018 in Selenium by Samarpit
• 5,910 points
2,980 views
0 votes
1 answer

Python Selenium: Can't enter a webpage using my script

CAPTCHA is used to stop website automation ...READ MORE

Jul 31, 2018 in Selenium by Samarpit
• 5,910 points
2,155 views
0 votes
1 answer

Error select.select_by_visible_text('Jan 2018')

Your import statement is incorrect. As of 3.9, ...READ MORE

Jul 31, 2018 in Selenium by Samarpit
• 5,910 points
3,055 views
0 votes
1 answer

Selenium wait for Ajax content to load

you need to wait for Javascript and ...READ MORE

Jul 31, 2018 in Selenium by Meci Matt
• 9,460 points
7,222 views
0 votes
1 answer

How to avoid Compound Class name error in Page Object?

Use a CSS selector instead: .country.name CSS selector is ...READ MORE

Jul 31, 2018 in Selenium by Meci Matt
• 9,460 points
1,014 views