@@ -258,51 +258,6 @@ used from the browser's console.
258258> window .clientSideScripts .findInputs (' username' , document .getElementById (' #myEl' ));
259259```
260260
261- ** Testing Out Protractor Interactively**
262-
263- When debugging or first writing test suites, you may find it helpful to
264- try out Protractor commands without starting up the entire test suite. You can
265- do this with the element explorer.
266-
267- To run element explorer, simply run protractor as you normally would, but pass in
268- the flag --elementExplorer:
269-
270- protractor --elementExplorer
271-
272- This will load up the URL on WebDriver and put the terminal into a REPL loop.
273- You will see a > prompt. The ` browser ` , ` element ` and ` protractor ` variables will
274- be available. Enter a command such as:
275-
276- > browser.get('http://www.angularjs.org')
277-
278- or
279-
280- > element(by.id('foobar')).getText()
281-
282- Typing tab at a blank prompt will fill in a suggestion for finding
283- elements. You can also use the ` list(locator) ` command to list all elements
284- matching a locator.
285-
286- Element explorer will start chrome by default. However, you can specify
287- another browser, change browser settings, or specify any other config that you
288- normally would with your protractor test. To do this, pass configs to
289- protractor like you normally would,
290- but with the ` --elementExplorer ` flag set:
291-
292- protractor [configFile] [options] --elementExplorer
293-
294- For example, to connect to ChromeDriver directly, use
295-
296- protractor --directConnect --elementExplorer
297-
298- Element explore will ignore your specs, not set up your framework (e.g. jasmine,
299- mocha, cucumber), and only allow you to pass in 1 capability, but will honor
300- every other parameter in your config.
301-
302- Note ` baseUrl ` is used here as the initial page, i.e. element explorer will try
303- to navigate to ` baseUrl ` automatically on start.
304-
305-
306261## Taking Screenshots
307262
308263WebDriver can snap a screenshot with ` browser.takeScreenshot() ` . This can be a
0 commit comments