Q15 of 30 Jennifer is automating a web

Q15 of 30

Jennifer is automating a web application using Selenium WebDriver. The application has a settings page where users can enable or disable various notification options. Each notification option is represented by a checkbox. The HTML structure for one of the checkboxes is as follows:

Which sequence of actions and locators would she uses to enable the “Receive Email Notifications” checkbox using Selenium WebDriver?

Locate the checkbox by its ID and click it.
Locate the checkbox by its value attribute and click it.
Locate the checkbox by its label text and click it.
Locate the checkbox by its XPath and click it.

Read more here: Source link