WHAT IS THE SYNTAX OF DROPDOWN?

0 votes
Aug 14 in Selenium by anonymous
31 views

Syntax for choosing an element from a drop-down? It can be selected either via matching text or matching value:

selectByVisibleText("MATCHING TEXT IN DROPDOWN");
selectByValue("MATCHING VALUE IN DROPDOWN");

1 answer to this question.

0 votes

Hi, you can checkout following thread to understand in detail how to handle dropdown elements on a webpage using selenium:

https://www.edureka.co/community/51264/different-select-option-dropdown-using-selenium-webdriver

or

https://www.edureka.co/community/3155/selecting-from-dropdown-list-using-selenium-webdriver-java

answered Aug 19 by Abha
• 27,180 points

Related Questions In Selenium

0 votes
1 answer

What is the role of TestNG & JUnit frameworks in Selenium?

Well TestNG and JUnit are test frameworks ...READ MORE

answered Apr 18, 2018 in Selenium by king_kenny
• 3,650 points
348 views
0 votes
1 answer

what is the need of xpath when you have attributes like id ,class,name in selenium?

It is not necessary that every element ...READ MORE

answered Jun 1, 2018 in Selenium by Vinita
• 220 points
232 views
0 votes
1 answer
0 votes
1 answer

What is the use of grouping in testNG?

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

answered Dec 26, 2018 in Selenium by Trisha
102 views
0 votes
1 answer
0 votes
1 answer

What is the importance of testing.xml file?

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

answered Jan 3 in Selenium by Tushar
80 views
0 votes
1 answer

What is the use of Sibling in Xpath?

Using sibling keyword, we can fetch a ...READ MORE

answered Jan 9 in Selenium by Frankie
• 9,810 points
287 views
0 votes
2 answers

What is the output of Usability Testing?

Usability testing = navigation + context testing. The ...READ MORE

answered Feb 14 in Selenium by Shashank
• 1,350 points
39 views
0 votes
1 answer

What is a Selenium framework and what are the benefits of it?

Hi Disha, Selenium framework is a code structure ...READ MORE

answered May 13 in Selenium by Abha
• 27,180 points
88 views
0 votes
2 answers

What is PhantomJS and what is the usage of it?

@Ojaswini, Phantomjs is used for automating webpage ...READ MORE

answered Aug 1 in Selenium by Abha
• 27,180 points
126 views