WHAT IS THE SYNTAX OF DROPDOWN

0 votes
Aug 15, 2019 in Selenium by anonymous
631 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,140 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
2,936 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
1,813 views
0 votes
1 answer

What is the best way of writing TestNG rules?

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

answered Dec 24, 2018 in Selenium by Nabarupa
1,662 views
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
1,092 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
2,873 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
3,222 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,830 points
1,896 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
1,105 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,140 points
1,131 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,140 points
2,171 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP