javascript - Where is "by" declared in the protractor source? -


in following code snippet:

element(by.id('mydiv')); 

the element declared in line 740 in this source. couldn't identify by declared. variable declared? if not declared anywhere, how variable resolved?

reading source, by "locator" , this source maybe related it. couldn't see source declaration of by variable.

by defined webdriver.js , extended in protractor specific angular locators by.model.

locators in webdriver.js defined in this file.

the extension in protractor defined here.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -