Get back the webdriver.Locator out of an elementFinder
问题 Given I have the elmFinder variable: var elmFinder = element(by.css('.thing')); What if i need to get back the webdriver.Locator, a.k.a locator strategy? i.e. elmFinder.??? //=> by.css('.thing') I'm looking after the function ??? if it exists. UPDATE: This feature has been merged and we can now do: elmFinder.locator(); 回答1: UPDATE: This feature has been merged and we can now do: elmFinder.locator(); Old answer: You cannot. The element finder does not keep a reference to the locator: https:/