Most viewed questions in Selenium

0 votes
1 answer

Can anyone explain how to write Selenium script for Flash Testing?

Hey Wasin, to understand how Selenium scripts ...READ MORE

May 23, 2019 in Selenium by Neelam
1,325 views
0 votes
1 answer

How a prompt alert can be handled in Python Selenium Webdriver?

Hey Duran, you can handle a prompt ...READ MORE

Jul 30, 2019 in Selenium by Abha
• 28,140 points
1,321 views
0 votes
2 answers

selenium xpath and id

id mean direct interacting with element like ...READ MORE

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

Getting selenium.common.exceptions.InvalidSelectorException with “span:contains('string')”

Use of css_selector to locate the element by ...READ MORE

Jul 10, 2018 in Selenium by Meci Matt
• 9,460 points
1,314 views
0 votes
1 answer

NoClassDef Found Exception occured

Here are a few probable steps to ...READ MORE

Oct 30, 2020 in Selenium by Sandra
1,313 views
0 votes
1 answer

I need scroll page in middle using action class or javascript

Try the following: WebElement element = driver.findElement(By.xxx("xxxx")); String scrollElementIntoMiddle ...READ MORE

Mar 30, 2020 in Selenium by Liana
1,308 views
0 votes
1 answer

Which Firefox version is compatible with Selenium 3.6.0

You would need to use GeckoDriver if ...READ MORE

Apr 17, 2018 in Selenium by king_kenny
• 3,710 points
1,308 views
0 votes
1 answer

How @Listener annotation can be used in TestNG?

Hey Barkha, TestNG @listeners are used to configure reports ...READ MORE

Jun 10, 2019 in Selenium by Abha
• 28,140 points
1,307 views
0 votes
1 answer

What are desired capabilities in Selenium?

Hey Varun, Desired Capabilities are used to configure ...READ MORE

Jun 25, 2019 in Selenium by Deepak
1,304 views
0 votes
1 answer

Is there a way to handle checkboxes and radio buttons using Python Selenium?

Hi Jessica, you can try these lines ...READ MORE

Jul 23, 2019 in Selenium by Anvi
• 14,150 points
1,301 views
0 votes
0 answers
0 votes
2 answers

What are the wait methods which can be used to handle AJAX calls?

Hi , for Ajax call better to use Explicit ...READ MORE

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

Write automation script to submit a form on a webpage using Webdriver?

Hey Riya, you can use following code ...READ MORE

May 29, 2019 in Selenium by Abha
• 28,140 points
1,291 views
0 votes
1 answer

What versions of firefox browser is supported by Selenium IDE?

Selenium IDE supports only one browser Mozilla ...READ MORE

Feb 9, 2019 in Selenium by Eshaan
1,286 views
0 votes
2 answers

How to use link as a locator to find element in selenium?

driver.findElement(By.linkText("link")).click(); READ MORE

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

File Upload in Selenium Webdriver

The problem I found is excessive backslash(\) is ...READ MORE

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

What are browser navigation commands in Selenium C#?

Hi Hema, Browser Navigation commands are used ...READ MORE

Jun 11, 2019 in Selenium by Dheeraj
1,278 views
0 votes
1 answer

What new features come with Selenium 3?

You can read the differences fullly here: ...READ MORE

Apr 6, 2018 in Selenium by nsv999
• 5,500 points
1,277 views
0 votes
1 answer

What are the different components of Selenium?

Selenium is a testing tool and comprises ...READ MORE

Jan 8, 2019 in Selenium by Fuji
1,275 views
0 votes
1 answer

How to run test case using TestNG

I am assuming that you want to ...READ MORE

Jan 8, 2019 in Selenium by Nabarupa
1,272 views
0 votes
1 answer

How can I create a POM test case in Selenium Webdriver?

Hey Akshay, follow these steps to create ...READ MORE

May 13, 2019 in Selenium by Anvi
• 14,150 points
1,268 views
+1 vote
1 answer

How to handle a combobox which when clicked open in new window with list of items(to be clicked) in selenium java ?

@Pavithra, you can try using following commands ...READ MORE

Oct 29, 2019 in Selenium by Abha
• 28,140 points
1,267 views
0 votes
1 answer

What are the commonly used Selenium Webdriver commands to manage cookies?

Hi Nisha, some of the most commonly ...READ MORE

Jun 19, 2019 in Selenium by Anvi
• 14,150 points
1,266 views
0 votes
1 answer

Page Factory: StaleElementReference Exception

Usually, a StaleElementReferenceException is thrown when: 1. ...READ MORE

Apr 21, 2018 in Selenium by king_kenny
• 3,710 points
1,265 views
+4 votes
2 answers

gmail using selenium driver in eclipse

@letslearn, it seems like you have tried ...READ MORE

Sep 11, 2018 in Selenium by Vardhan
• 13,190 points
1,258 views
0 votes
1 answer

What is exception test in testng?

@Zubin, TestNG gives an option for tracing the ...READ MORE

Jun 19, 2019 in Selenium by Anvi
• 14,150 points
1,256 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,252 views
+1 vote
1 answer

how do I escape the "/" in a textarea for Python3.7 with Selenium

@tchrisev, try using Robot class with following commands after your send_keys() ...READ MORE

Oct 29, 2019 in Selenium by Abha
• 28,140 points
1,248 views
0 votes
2 answers

Drag and drop in selenium

WebElement dragale = driver.findElement(By.xpath("//*[@id=\"draggable\"]/p")); WebElement dropable = driver.findElement(By.xpath("//*[@id=\"droppable\"]")); Actions ...READ MORE

May 4, 2020 in Selenium by dragAndDrop(WebElement source, WebElemen
1,248 views
+3 votes
1 answer

Not able to run in chrome

There is a very silly mistake in ...READ MORE

May 15, 2018 in Selenium by king_kenny
• 3,710 points
1,248 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

Which packages are required to be imported to launch Firefox driver?

Hi Ridhima, to launch Firefox driver in ...READ MORE

Jul 16, 2019 in Selenium by Anvi
• 14,150 points
1,240 views
0 votes
1 answer

Debug tests in Selenium

The tests could be debugged in such ...READ MORE

Jan 9, 2019 in Selenium by Prawin
1,238 views
0 votes
1 answer

GUI with pyqt5 QLineEdit using Web driver Script

For a QLineEdit you use the your ...READ MORE

Jul 23, 2018 in Selenium by Samarpit
• 5,910 points
1,236 views
0 votes
1 answer

What is the use of Pytest with Selenium Webdriver?

Hi Abhinav, Pytest is a testing framework ...READ MORE

Aug 22, 2019 in Selenium by Anvi
• 14,150 points
1,235 views
0 votes
1 answer

Taking Screenshot using Selenium WebDriver

Using driver.save_screenshot('/path/to/file') we will be able to ...READ MORE

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

Find broken link in a webpage using selenium

You have to follow these steps to ...READ MORE

Jan 8, 2019 in Selenium by Sona
1,218 views
0 votes
2 answers

What is Page Object Model in Selenium WebDriver?

POM is one of design pattern. maintenance  should ...READ MORE

Sep 4, 2020 in Selenium by Sri
• 3,190 points
1,216 views
–1 vote
0 answers

How Can I get All SEO Data (Title, Meta title, Meta Description and Address.) Using JAVA Selenium Webdriver

I want to get all SEO data ...READ MORE

Jul 23, 2019 in Selenium by Aazad
• 170 points
1,210 views
0 votes
1 answer

Program terminating with error.

This error you got is because your ...READ MORE

Dec 27, 2018 in Selenium by Nabarupa
1,207 views
0 votes
1 answer

Can anyone help me with the hierarchy or order in which TestNG Annotations execute?

Hey Vineet, TestNG Annotations run in the ...READ MORE

Jul 3, 2019 in Selenium by Ankita
1,204 views
0 votes
1 answer

Can anyone explain how an AJAX call can be handled in Selenium webdriver?

Hello Megha, to demonstrate how AJAX calls are ...READ MORE

May 9, 2019 in Selenium by Pratibha
• 3,690 points
1,202 views
0 votes
0 answers

I am facing the same Exception in thread "main" java.lang.IllegalStateException error. can anyone help me [closed]

Jul 20, 2019 in Selenium by anonymous

closed Jul 22, 2019 by Abha 1,199 views
0 votes
1 answer

I tried the below code but multiple instances are being created

Remove the driver initialization from @BeforeClass/ returnDriver() ...READ MORE

Mar 30, 2018 in Selenium by DragonLord999
• 8,450 points
1,194 views
0 votes
2 answers

How to open a link in a new tab?

try this :- driver.findElement(By.linkText("Business")).sendKeys(K ...READ MORE

Jan 11, 2019 in Selenium by kaloo
1,193 views
0 votes
1 answer

What happens if I don't create a Package and add a Class directly under the Project in Eclipse?

Hello Avantika, its not considered as a ...READ MORE

Jul 17, 2019 in Selenium by Anvi
• 14,150 points
1,186 views
0 votes
1 answer

IFrame in Selenium

You can try out the belo code: driver.switch_to.frame(driver.find_element_by_tag_name("iframe")) .  To ...READ MORE

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

Exception in thread "main" java.lang.IllegalStateException

Your Query is similar to https://www.edureka.co/community/5617 ...READ MORE

Apr 13, 2020 in Selenium by Sirajul
• 59,230 points
1,179 views
0 votes
1 answer

How to wait(5min to 15min) for specific email and click to the email which has subject "TEST"?

Hey bkarun, to wait for a particular ...READ MORE

Jul 12, 2019 in Selenium by Abha
• 28,140 points
1,170 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,169 views