Most voted questions in Selenium

0 votes
1 answer

How can I handle multiple keyboard keys using Selenium Webdriver?

Hey Jasmine, there are a few ways ...READ MORE

Jun 25, 2019 in Selenium by Raj
36,028 views
0 votes
1 answer

how to solve " java.lang.IllegalStateException"?

Include the below line in your code ...READ MORE

Jun 24, 2019 in Selenium by John
5,704 views
0 votes
1 answer

How to switch back from a frame to default in Selenium Webdriver?

Hey Rupesh, to switch back from a ...READ MORE

Jun 25, 2019 in Selenium by Anvi
• 14,150 points
12,795 views
0 votes
1 answer

What is the command to press enter inside the HTML textarea using Selenium Webdriver?

Hey Akash, Selenium provides sendKeys() method to ...READ MORE

Jun 25, 2019 in Selenium by Anvi
• 14,150 points
2,022 views
0 votes
1 answer

How to type text in a new line inside a text area using Selenium Webdriver?

Hey Unnati, '\n' is usually used to type text ...READ MORE

Jun 25, 2019 in Selenium by Abha
• 28,140 points
14,900 views
0 votes
1 answer

Is there any method to reset the HTML text box in Selenium Webdriver?

Hey Anushka, you can use clear() function to ...READ MORE

Jun 25, 2019 in Selenium by Abha
• 28,140 points
2,191 views
0 votes
1 answer

Why do we create a reference variable of type Webdriver, not the actual browser type?

Hey Karan, we create a reference variable ...READ MORE

Jun 22, 2019 in Selenium by Abha
• 28,140 points
3,129 views
0 votes
1 answer

What is the primary difference between the XPath and CSS selector?

Hello Ushma, the primary difference between XPath ...READ MORE

Jun 24, 2019 in Selenium by Anvi
• 14,150 points

edited Oct 27, 2023 by Khan Sarfaraz 33,503 views
0 votes
1 answer

How ID and Class can be used as a CSS Selector?

Hey Bruce, to identify a web element ...READ MORE

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

Is there any way of locating elements based on the text in XPath?

Hey Angad, for locating elements based on ...READ MORE

Jun 24, 2019 in Selenium by Ishad
1,151 views
0 votes
1 answer

How to locate an element by partially comparing its attributes in XPath?

Hey Lakshya, you can locate an element ...READ MORE

Jun 24, 2019 in Selenium by Abha
• 28,140 points
5,872 views
0 votes
1 answer

Which of the locators should be used when?

Hi @Kapil, you should use ID or ...READ MORE

Jun 24, 2019 in Selenium by Kabir
901 views
0 votes
1 answer

How MaxSessions are different from MaxInstances properties of Selenium Grid?

Hello Palak, MaxInstances is the no. of browser ...READ MORE

Jun 24, 2019 in Selenium by Anvi
• 14,150 points
5,610 views
0 votes
1 answer

Which programming languages are supported by selenium webdriver to write test cases?

Hey Aman, following programming languages are supported ...READ MORE

Jun 24, 2019 in Selenium by Abha
• 28,140 points
18,803 views
0 votes
2 answers

I am trying to run the below code but java.lang.Illegalstate Exception is coming

You are facing this error because while ...READ MORE

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

Which automation tools can be integrated with Selenium to achieve Continuous testing?

Hi Harshit, Selenium can be integrated with  automation tools ...READ MORE

Jun 21, 2019 in Selenium by Abha
• 28,140 points
2,266 views
0 votes
1 answer

Can anyone suggest some of the automation testing tool which are used for Non-Functional Automation?

Hello Chandni, some of the automation tools ...READ MORE

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

What are commonly used Automation Testing tools that are used for Functional Automation?

Hey Balraj, most commonly used Automation tools ...READ MORE

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

Is it possible to stop page loading on browser with Selenium Webdriver?

Hello Kasim, yes it is possible to ...READ MORE

Jun 21, 2019 in Selenium by Anvi
• 14,150 points
7,639 views
0 votes
1 answer

How can I get Webdriver Session ID in Selenium?

Hey Nargis, you can use following methods ...READ MORE

Jun 21, 2019 in Selenium by Abha
• 28,140 points
13,882 views
0 votes
1 answer

Which all values can be accepted as attribute for parallel execution of test scripts?

Hi Suman, If I want to run ...READ MORE

Jun 20, 2019 in Selenium by Abhilasha
3,505 views
0 votes
1 answer

How to do session handling in Selenium Webdriver?

Hey Lalita, you can perform following steps ...READ MORE

Jun 20, 2019 in Selenium by Subhash
11,833 views
0 votes
1 answer

What is the scope for Selenium in IT industry?

Hey Kundan, as of now selenium is ...READ MORE

Jun 20, 2019 in Selenium by Roshani
1,971 views
0 votes
3 answers

How to print text from a list of all web elements with same class name in Selenium?

Try using List <WebElement> to access all similar elements ...READ MORE

Dec 16, 2020 in Selenium by Roshni
• 10,440 points
90,779 views
0 votes
1 answer

Locate particular link text among multiple match results while locating web elements in Selenium Webdriver?

Hey Yash, if you want to locate ...READ MORE

Jun 20, 2019 in Selenium by Pratibha
3,703 views
0 votes
1 answer

What are the different ways of invoking TestNG?

@Jeetu, TestNG can be invoked in following ...READ MORE

Jun 19, 2019 in Selenium by Abha
• 28,140 points
3,538 views
0 votes
1 answer

Can I run TestNG using Command Prompt?

Hey Himanshi, you can run testNG with command ...READ MORE

Jun 20, 2019 in Selenium by Abha
• 28,140 points
4,463 views
0 votes
1 answer

How can I skip a @Test method from execution in TestNG?

Hey Darsh, you can skip a @Test ...READ MORE

Jun 20, 2019 in Selenium by Abha
• 28,140 points
2,762 views
0 votes
1 answer

How to exclude a particular test group from a test case execution?

Hey Catherine, you can use exclude tag in the ...READ MORE

Jun 20, 2019 in Selenium by Abha
• 28,140 points
2,339 views
0 votes
1 answer

Is it possible to exclude a particular test method from a test case execution?

Hello Tarang, you can exclude a particular ...READ MORE

Jun 19, 2019 in Selenium by Anvi
• 14,150 points
1,938 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,850 views
0 votes
1 answer

Benefits of using JUnit Error Collector

Hi Disha, some of the benefits of ...READ MORE

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

What is the use of @Rule annotation in JUnit?

Hello Sarfaraz, JUnit provides special kind of handling ...READ MORE

Jun 19, 2019 in Selenium by anonymous
• 28,140 points
2,006 views
0 votes
1 answer

What is error collector in JUnit and why it is used?

Hey Ekanshi, Error collector collects all error objects ...READ MORE

Jun 19, 2019 in Selenium by anonymous
• 28,140 points
1,891 views
0 votes
1 answer

How can I store data into a cookie using Selenium Webdriver?

Hey Abhilasha, we can load a website ...READ MORE

Jun 19, 2019 in Selenium by Anvi
• 14,150 points
3,705 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,810 views
0 votes
1 answer

What does the test timeout mean in TestNG?

Hi Wahida, test timeout represents the maximum ...READ MORE

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

What is threadPoolSize used for @Test methods in TestNG?

Hi Rahul, threadPoolSize tells the TestNG to form a ...READ MORE

Jun 19, 2019 in Selenium by Abha
• 28,140 points
8,601 views
0 votes
1 answer

What is the use of invocationcount in TestNG?

Hey Owen, The invocationcount attribute tells how many ...READ MORE

Jun 19, 2019 in Selenium by anonymous
• 28,140 points
9,837 views
0 votes
1 answer

How to write regular expression In testng.xml file to search for specific keyword.

Hi Joginder, you can write regular expression ...READ MORE

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

How reports can be produced in different ways for TestNG results?

Hey Suraj, TestNG offers two ways to produce ...READ MORE

Jun 19, 2019 in Selenium by anonymous
• 14,150 points
2,389 views
0 votes
1 answer

related to href

Hey Himanshu, as far as I can ...READ MORE

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

Is there any way to get Firefox working with Selenium WebDriver on Mac OSX

You can try calling the webdriver with ...READ MORE

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

How to get the select options using Selenium WebDriver in Java

Hey there! You should be able to get ...READ MORE

Jun 14, 2019 in Selenium by Surya
• 970 points
5,143 views
0 votes
0 answers
0 votes
1 answer

How can I ignore all test methods using @ignore annotation in JUnit?

@Gavish, if you want to ignore all ...READ MORE

Jun 13, 2019 in Selenium by Tisha
4,239 views
0 votes
0 answers
0 votes
0 answers

What is JUnit @ignore test annotation and when it can be used?

What is JUnit @ignore test annotation and ...READ MORE

Jun 13, 2019 in Selenium by Garry
977 views
0 votes
1 answer

How can I run test cases in parallel using TestNG in selenium webdriver?

Hi Sobia, for running test cases in ...READ MORE

Jun 12, 2019 in Selenium by Abha
• 28,140 points
2,823 views
0 votes
1 answer

How to run a group of test cases using TestNG in Selenium Webdriver?

Hey Kajal, TestNG allows you to perform ordered ...READ MORE

Jun 12, 2019 in Selenium by Abha
• 28,140 points
3,234 views