MCQs > IT & Programming > Selenium Automation > Correct Java command that can be used for locating the above—given element by class name?

Selenium Automation MCQs

Carefully analyze the following element given in a WebDriver and answer the question that follows it.

Car
bus

Which of the following is the correct Java command that can be used for locating the above—given element by class name?


Answer

Correct Answer:

List vehicle = driver.f‌indElements(By.className("vehicle"));     

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Selenium Automation Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

More Selenium Automation MCQ Questions

search

Selenium Automation Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it