Most voted questions in Selenium

0 votes
1 answer

Cannot click on a button using selenium

The error that I figured out was ...READ MORE

Jan 4, 2019 in Selenium by Dushyant
3,206 views
0 votes
1 answer

Elements are not recognised in selenium

Many a times the problem is that ...READ MORE

Jan 4, 2019 in Selenium by Dhruva
3,816 views
0 votes
1 answer

What is the importance of testing.xml file?

We use testng.xml file to configure the complete test ...READ MORE

Jan 4, 2019 in Selenium by Tushar
2,642 views
0 votes
1 answer

What are the advantage of using testNG?

The main advantage of testNG can be ...READ MORE

Jan 3, 2019 in Selenium by Dyna
14,241 views
0 votes
1 answer

How does dependency work in testNG?

There are times when you need to ...READ MORE

Jan 3, 2019 in Selenium by Shuvodip
433 views
0 votes
2 answers

Is there a way to handle exceptions in testNG?

I don't think this should be a ...READ MORE

Jan 4, 2019 in Selenium by Vardhan
• 13,190 points
3,136 views
0 votes
1 answer

How to disable a test case in testNG?

You can use the enable method to ...READ MORE

Jan 3, 2019 in Selenium by Nabarupa
1,851 views
0 votes
2 answers

How to handle chrome notification in selenium?

Map<String, Object> prefs = new HashMap<String, Object>(); prefs.put("profile.default_content_setting_values.notifications", ...READ MORE

May 4, 2020 in Selenium by Mukti
• 140 points
5,277 views
0 votes
1 answer

What is the use of @listener annotation in TestNG?

 @listeners are used to configure reports and ...READ MORE

Jan 2, 2019 in Selenium by Shuvodip
2,422 views
0 votes
1 answer

What are the different assertions supported by testNG?

The different assertions you can use in ...READ MORE

Jan 2, 2019 in Selenium by Nabarupa
615 views
0 votes
2 answers

What are the things we cannot automate using selenium?

1) Regression TC that require manual involvement ...READ MORE

Feb 27, 2020 in Selenium by Divya Krishnan
15,007 views
0 votes
1 answer

How to check whether a text is present in the webpage or not?

Hey @Sradha, you can use this to ...READ MORE

Jan 2, 2019 in Selenium by Rudra
1,832 views
0 votes
1 answer

How to check visibility of an element using Selenium webDriver commands?

Selenium gives you the facility to check ...READ MORE

Jan 2, 2019 in Selenium by Nabarupa
4,021 views
0 votes
1 answer

What is the webdriver that can be used with firefox?

You can use Firefox Gekodriver to use ...READ MORE

Jan 2, 2019 in Selenium by Nabarupa
626 views
0 votes
0 answers

Selenium can't find button

Here is the HTML: <button id="getCoupon" class="getCoupon" onclick="IWant()" ...READ MORE

Jan 1, 2019 in Selenium by Sebastian
• 180 points

recategorized Jan 1, 2019 by Vardhan 3,781 views
0 votes
0 answers

Not finding the element on the webpage

I apologize if this is my second ...READ MORE

Jan 1, 2019 in Selenium by Sebastian
• 180 points
914 views
0 votes
1 answer

How to delete cookies using selenium command?

Yes, it is possible to delete the ...READ MORE

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

How can I travel forward and back in a browser using selenium?

You can use the Navigate interface to ...READ MORE

Dec 31, 2018 in Selenium by Nabarupa
11,913 views
0 votes
1 answer

Getting error: unhandled inspector error: {"code":-32000,"message":"Cannot navigate to invalid URL"}

Hey, @sradha, The error you are getting is ...READ MORE

Dec 31, 2018 in Selenium by Shuvodip
9,910 views
0 votes
1 answer

What is RasterFormatException in Java?

RasterFormatException is thrown by getSubImage() when the area specified by [ x,y ...READ MORE

Dec 31, 2018 in Selenium by rishav raj
2,138 views
0 votes
1 answer

What is soft assert and hard assert?

Soft Assert: Soft Assert collects errors during ...READ MORE

Dec 31, 2018 in Selenium by Stranger
24,825 views
0 votes
1 answer

What is difference between Assert and Verify in Selenium?

Hello, talking about the definition.  Assert: If the assert condition ...READ MORE

Dec 31, 2018 in Selenium by Prasad
37,419 views
0 votes
2 answers

How to get the text from a website using selenium?

driver.findElement(By.cssSelector("p")).getText() or  IWebElement element = Browser.GetElementByCssSelector("div.loginbox p"); string text = ...READ MORE

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

How can I take a screenshot using selenium?

Hello @Sradha, You can use the File ...READ MORE

Dec 31, 2018 in Selenium by Nabarupa
500 views
0 votes
1 answer

Error while executing selenium code

Hey @Sradha, First thing that I would ...READ MORE

Dec 28, 2018 in Selenium by Nabarupa
1,807 views
0 votes
1 answer

How to search for multiple keywords in a random manner using Selenium in Java?

Hey @Sradha,  As you have created an array ...READ MORE

Dec 28, 2018 in Selenium by Nabarupa
2,153 views
0 votes
1 answer

How to open chrome driver in incognito mode?

Hey @Sradha, You can use the below code:- System.setProperty("webdriver.chrome.driver","C:\\Users\\Nabarupa_Das\\Downloads\\chromedriver.exe"); ChromeOptions ...READ MORE

Dec 28, 2018 in Selenium by Nabarupa
4,947 views
0 votes
1 answer

Different types of parameterization.

There are two ways in which you ...READ MORE

Dec 28, 2018 in Selenium by Rachna
571 views
0 votes
1 answer

What is parameterization?

When you write a software you want ...READ MORE

Dec 28, 2018 in Selenium by Disha
438 views
0 votes
1 answer

Is there a way to run only few test cases at a time in testNG class?

Hello @sradha, yes there are many ways ...READ MORE

Dec 27, 2018 in Selenium by Rashmi
5,277 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,170 views
0 votes
1 answer

Unable to run a selenium code for google search.

The error that you are getting is ...READ MORE

Dec 27, 2018 in Selenium by Anshu
782 views
0 votes
1 answer

Is there a method by which we can control the running of a test case?

Hey @sradha, yes there is a way ...READ MORE

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

Can a testNG suite run with different group names which doesn't exist?

Hey @Sradha, this works fine. Yes the ...READ MORE

Dec 27, 2018 in Selenium by Richa
2,344 views
0 votes
1 answer

How to execute groups of similar name for multiple classes?

Hello @Sradha,  You can create a TestNG suite ...READ MORE

Dec 27, 2018 in Selenium by Trisha
663 views
0 votes
2 answers

How does prioritization helps in testing?

Hi , Lets consider a scenario u have ...READ MORE

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

What is sequencing in TestNG?

Sequencing helps you to run your test ...READ MORE

Dec 27, 2018 in Selenium by Trisha
623 views
0 votes
1 answer

What is the use of grouping in testNG?

Grouping is the method used to separate ...READ MORE

Dec 27, 2018 in Selenium by Trisha
850 views
0 votes
1 answer

How can I get cssSelector of an element?

There are two ways as much as ...READ MORE

Dec 27, 2018 in Selenium by Trisha
470 views
0 votes
1 answer

exceptionNoSuchElementException when i try to find an element using Class locator

The error you are getting is because ...READ MORE

Dec 26, 2018 in Selenium by Tanvi
534 views
0 votes
1 answer

System.setProperty (String,String) is showing System is not applicable for the arguments

You are correct that it requires (String,String) ...READ MORE

Dec 26, 2018 in Selenium by Rashmi
1,802 views
0 votes
1 answer

How to execute multiple classes at once using TestNG?

Hey @Sradha, Yes it is possible in ...READ MORE

Dec 26, 2018 in Selenium by Rashmi
9,047 views
0 votes
1 answer

Getting error while running a XML file in TestNG

Hello @Sradha, The synatx of using test is ...READ MORE

Dec 26, 2018 in Selenium by Rashmi
15,545 views
0 votes
1 answer

Test case not running on TestNG

Hello @Sradha, You are not getting any ...READ MORE

Dec 26, 2018 in Selenium by Trisha
2,761 views
0 votes
2 answers

What is the difference between / and // in xpath?

/ - Selects from the root node // ...READ MORE

May 29, 2019 in Selenium by anonymous
27,097 views
0 votes
1 answer

How to use keyboard shortcuts in selenium?

Yes, you can use all the keyboard ...READ MORE

Dec 25, 2018 in Selenium by Shuvodip
18,655 views
0 votes
1 answer

Can we use sendkey for uploading a file?

Yes @User, we can upload a file ...READ MORE

Dec 25, 2018 in Selenium by Shuvodip
368 views
0 votes
1 answer

How to use a specific chrome profile in selenium?

User profiling is the term used for ...READ MORE

Dec 24, 2018 in Selenium by Shuvodip
26,103 views
0 votes
1 answer

What is the best way of writing TestNG rules?

There is no such best way but ...READ MORE

Dec 24, 2018 in Selenium by Nabarupa
1,426 views
0 votes
3 answers

How to install TestNG in eclipse?

Installing TestNG in Eclipse Step 1) Launch Eclipse. On the ...READ MORE

Dec 11, 2020 in Selenium by Gitika
• 65,910 points
37,371 views