Answers for "protractor get active element"

1

protractor get active element

Grab active element 
browser.driver.switchTo().activeElement()

Grab active element id
browser.driver.switchTo().activeElement().getAttribute('id')
Posted by: Guest on January-20-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language