-
Notifications
You must be signed in to change notification settings - Fork 2.3k
feat(elementExplorer): Combine browser.pause with elementExplorer #1693
Conversation
268a989
to
749d4d3
Compare
|
||
if (!configFile && !argv.elementExplorer && args.length < 3) { | ||
console.log('you must either specify a configuration file ' + | ||
'or at least 3 options. See "protractor --help" for more info.'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's show help here automatically as well.
Awesome, looks good overall, just a couple clarification comments. |
And I assume a following PR will change the docs and the element explorer binary? |
I'll send a follow up PR to change the docs. I was thinking of removing the element explorer binary since you can just do 'protractor --elementExplorer'. I can keep the binary too, but it would just be a one-liner. What do you think? |
Let's keep the one liner binary for discoverability. |
Addressed comments. |
Great - let me do one more run-through and actually try it out on my computer and then I'll LGTM. |
* reuse logic for browser.pause for elementExplorer * introduce browser.enterRepl * allow customization of driver for elementExplorer * fix bug where repl cannot return an ElementFinder (related angular#1600) Closes angular#1314, angular#1315
c6822ac
to
5b755bd
Compare
Docs: #1717 |
|
||
startUp(); | ||
console.log('Please use "protractor --elementExplorer [options] [configFile]"' + | ||
' for full functionality\n'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you change this to
Please use protractor [configFile] [options] --elementExplorer
The order can be very confusing if, for example, you run
protractor --elementExplorer myConfig.js
This will actually ignore myConfig.js because optimist interprets it as the value of elementExplorer
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed.
5b755bd
to
042eec8
Compare
LGTM |
merged with fb099de |
How can I can access test scenario varibles in Is this somehow related to #1607 ? |
@tb I agree it sounds like a good feature to have. However, it is not possible right now since Protractor is running user code (repl code) in a vm. It might be possible to inject relevant helpers/librarys into the vm's context during the set up, but it would look something like |
Closes #1314, #1315