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
Post a Comment