Short-hand expressions for the primary element locator strategies. For example the following two statements are equivalent:
var e1 = driver.findElement(By.id('foo'));var e2 = driver.findElement({id: 'foo'}); Copy
var e1 = driver.findElement(By.id('foo'));var e2 = driver.findElement({id: 'foo'});
Care should be taken when using JavaScript minifiers (such as the Closure compiler), as locator hashes will always be parsed using the un-obfuscated properties listed.
Generated using TypeDoc
Short-hand expressions for the primary element locator strategies. For example the following two statements are equivalent:
Care should be taken when using JavaScript minifiers (such as the Closure compiler), as locator hashes will always be parsed using the un-obfuscated properties listed.