WHAT IS THE SYNTAX OF DROPDOWN

0 votes
Aug 15, 2019 in Selenium by anonymous
142 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
• 28,060 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, 2020 in Selenium by Sri
• 3,190 points
1,317 views
0 votes
2 answers

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

some of the controls not have id ...READ MORE

answered Sep 4, 2020 in Selenium by Sri
• 3,190 points
892 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 27, 2018 in Selenium by Trisha
446 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,636 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 4, 2019 in Selenium by Tushar
905 views
0 votes
1 answer

What is the use of Sibling in Xpath?

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

answered Jan 10, 2019 in Selenium by Frankie
• 9,810 points
1,043 views
0 votes
2 answers

What is the output of Usability Testing?

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

answered Feb 15, 2019 in Selenium by Shashank
• 1,370 points
238 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
• 28,060 points
427 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
• 28,060 points
1,086 views