Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

protractor get active element

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

Grab active element id
browser.driver.switchTo().activeElement().getAttribute('id')
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #protractor #active #element
ADD COMMENT
Topic
Name
7+5 =