Most voted questions in Selenium

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
1,507 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
13,294 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
1,639 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
2,452 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 32,498 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
599 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
575 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
4,753 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
406 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
4,573 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
16,686 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
816 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
1,577 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
459 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
708 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
6,889 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,170 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
2,949 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,079 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,481 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,520 points
82,565 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
2,746 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
2,809 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
3,651 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,108 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
1,854 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,410 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,253 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
496 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
1,364 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,441 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
2,788 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,253 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
970 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
7,565 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,141 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
4,229 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
1,540 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
461 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
2,684 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
4,465 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
3,429 views
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
502 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,186 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
2,724 views
0 votes
1 answer

How can we create data driven framework using TestNG?

Hey Yuvraj, we can create a Data ...READ MORE

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

How to pass parameter through testng.xml file to a test case in Selenium Webdriver?

Hello Revathi, to pass parameter through testng.xml ...READ MORE

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

How to create a test class with a test method in JUnit to testing framework?

Hi Sargun, first we need to create ...READ MORE

Jun 13, 2019 in Selenium by Nagendra
789 views