WHAT IS THE SYNTAX OF DROPDOWN

0 votes
Aug 14, 2019 in Selenium by anonymous
108 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,040 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,010 points
1,126 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,010 points
776 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
362 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,482 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
731 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
912 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
182 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,040 points
338 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,040 points
941 views