WHAT IS THE SYNTAX OF DROPDOWN?

0 votes
Aug 14, 2019 in Selenium by anonymous
69 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, 2019 by Abha
• 27,930 points

Related Questions In Selenium

0 votes
2 answers

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

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

answered Sep 4 in Selenium by Sri
• 2,970 points
833 views
0 votes
2 answers
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
244 views
0 votes
1 answer

What is the use of @listener annotation in TestNG?

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

answered Jan 2, 2019 in Selenium by Shuvodip
1,130 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

answered Jan 3, 2019 in Selenium by Tushar
493 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, 2019 in Selenium by Frankie
• 9,810 points
714 views
0 votes
2 answers

What is the output of Usability Testing?

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

answered Feb 14, 2019 in Selenium by Shashank
• 1,370 points
97 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, 2019 in Selenium by Abha
• 27,930 points
220 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, 2019 in Selenium by Abha
• 27,930 points
710 views