Home »
MCQs »
Selenium MCQs
Which of the following is the correct syntax to use Select class?
48. Which of the following is the correct syntax to use Select class?
- Select dropdown = new Select(<WebElement>)
- select dropdown = new select(<Element>)
- Select dropdown = Select(<WebElement>)
Answer: A) Select dropdown = new Select(<WebElement>)
Explanation:
The correct syntax for the Select class is: Select dropdown = new Select(<WebElement>)