Created
September 6, 2021 17:14
-
-
Save praveen4463/43bd4172dc1b1da60e0d4efb18976014 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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