Skip to content

Instantly share code, notes, and snippets.

View praveen4463's full-sized avatar

Praveen Tiwari praveen4463

View GitHub Profile
@praveen4463
praveen4463 / Login.zwl.js
Last active September 6, 2021 16:14
Login
openUrl('https://www.example.com/login')
type(findElement('Email', by.labelText), '[email protected]')
type(findElement('Password', by.labelText), '*****', keys.enter)
openUrl('https://github.com/')
click(findElement('Sign in', by.text))
typeActive('[email protected]', keys.tab, '******', keys.tab)
type(findElement('/Search/', by.placeholderText), 'React')
click(findElement('facebook/react', by.text))
assertTrue(elementExists('reactjs.org', by.text))
assertTrue(elementExists('Unstar', by.text))
click(findElement('Go to file', by.text))
typeActive('Reactangle.js')
click(findElement('#tree-browser > li', by.cssSelector))