Skip to content

Instantly share code, notes, and snippets.

@zuhrig
Last active August 19, 2016 13:27
Show Gist options
  • Save zuhrig/ad5849f2106a469913ece4b23cfb0a3a to your computer and use it in GitHub Desktop.
Save zuhrig/ad5849f2106a469913ece4b23cfb0a3a to your computer and use it in GitHub Desktop.
var webElement = element(locator);
// Click en el elemento
webElement.click();
// Simula el teclado manda valores.
webElement.sendKeys('my text');
// Limpia el contenido. Normalmente de un input
webElement.clear();
// Trae el valor de un atributo. normalmente de un input.
webElement.getAttribute('value');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment