Change the page with JavaScript
Automation taskMediumAsked in: Infosys, TCS, Wipro
Sometimes a test must change the page (its HTML elements, called the DOM) to reach a state quickly, such as showing hidden text. Do the change with a script, then verify the result through normal Selenium calls, so the check itself still behaves like a user.