Skip to content

Instantly share code, notes, and snippets.

@praveen4463
Created September 6, 2021 17:14
Show Gist options
  • Save praveen4463/43bd4172dc1b1da60e0d4efb18976014 to your computer and use it in GitHub Desktop.
Save praveen4463/43bd4172dc1b1da60e0d4efb18976014 to your computer and use it in GitHub Desktop.
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))
filePath = getElementText(findElement('blob-path', by.id))
assertTrue(startsWith(filePath, 'react/packages/react-art/Rectangle.js'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment