Most voted questions in Selenium

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 in Selenium by Abha
• 27,180 points
335 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 24 in Selenium by Abha
• 27,180 points
51 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 21 in Selenium by Abha
• 27,180 points
58 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 23 in Selenium by Anvi
• 13,960 points
1,530 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 21 in Selenium by Abha
• 27,180 points
52 views
0 votes
1 answer

How can I access the parent of a node with XPath?

Hey Hemant, we can use the double ...READ MORE

Jun 23 in Selenium by Anvi
• 13,960 points
106 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 23 in Selenium by Ishad
47 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 in Selenium by Abha
• 27,180 points
53 views
0 votes
1 answer

Which of the locators should be used when?

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

Jun 24 in Selenium by Kabir
25 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 23 in Selenium by Anvi
• 13,960 points
102 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 23 in Selenium by Abha
• 27,180 points
34 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 in Selenium by Abha
• 27,180 points
64 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 in Selenium by Abha
• 27,180 points
32 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 in Selenium by Anvi
• 13,960 points
36 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 in Selenium by Abha
• 27,180 points
31 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 in Selenium by Anvi
• 13,960 points
327 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 in Selenium by Abha
• 27,180 points
563 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 in Selenium by Abhilasha
30 views
0 votes
1 answer

How to do session handling in Selenium Webdriver?

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

Jun 20 in Selenium by Subhash
622 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 in Selenium by Roshani
114 views
0 votes
1 answer

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

@Rajni, following test case is somewhat similar ...READ MORE

Jun 20 in Selenium by Avantika
1,292 views
0 votes
1 answer
0 votes
1 answer

What are the different ways of invoking TestNG?

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

Jun 19 in Selenium by Abha
• 27,180 points
39 views
0 votes
1 answer

Can I run TestNG using Command Prompt?

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

Jun 19 in Selenium by Abha
• 27,180 points
44 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 19 in Selenium by Abha
• 27,180 points
39 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 19 in Selenium by Abha
• 27,180 points
78 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 in Selenium by Anvi
• 13,960 points
33 views
0 votes
1 answer

What is exception test in testng?

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

Jun 19 in Selenium by Anvi
• 13,960 points
29 views
0 votes
1 answer

Benefits of using JUnit Error Collector

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

Jun 19 in Selenium by anonymous
• 13,960 points
29 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 in Selenium by anonymous
• 27,180 points
53 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 in Selenium by anonymous
• 27,180 points
49 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 in Selenium by Anvi
• 13,960 points
83 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 in Selenium by Anvi
• 13,960 points
38 views
0 votes
1 answer

What does the test timeout mean in TestNG?

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

Jun 19 in Selenium by Abha
• 27,180 points
31 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 in Selenium by Abha
• 27,180 points
343 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 in Selenium by anonymous
• 27,180 points
286 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 in Selenium by Anvi
• 13,960 points
72 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 in Selenium by anonymous
• 13,960 points
37 views
0 votes
1 answer

related to href

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

Jun 18 in Selenium by Abha
• 27,180 points
28 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 in Selenium by Anvi
• 13,960 points
71 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 13 in Selenium by Surya
• 970 points
141 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 12 in Selenium by Tisha
60 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 12 in Selenium by Garry
22 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 in Selenium by Abha
• 27,180 points
113 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 in Selenium by Abha
• 27,180 points
143 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 in Selenium by Anvi
• 13,960 points
145 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 in Selenium by Abha
• 27,180 points
364 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 12 in Selenium by Nagendra
35 views