Skip to content

Instantly share code, notes, and snippets.

@lirantal
Last active October 3, 2018 19:59
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lirantal/a1f1fcdea0477278d04ded63ba7483b4 to your computer and use it in GitHub Desktop.
Save lirantal/a1f1fcdea0477278d04ded63ba7483b4 to your computer and use it in GitHub Desktop.
protractor element explorer

Fire up Selenium and web driver

$ node_modules/.bin/protractor --elementExplorer

browser.get('https://localhost')

browser.ignoreSynchronization = true;

element(by.css('selectorName')).getText();

Debug Protractor

Place a browser.pause() in the code to break into debug mode Place a browser.enterRepl() in the code to break into REPL-enabled console during a test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment