GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing www.mediawiki.org — Selenium/How-to/Debug with browser.debug() - MediaWiki EnvironmentsThis tip works if you're targeting:
Make the browser visibleTo speed up the debugging, you will probably want to run make the browser visible. See Selenium/How-to/Make the browser visible. Environment variablesBy default, Mocha (testing framework) will abort the test suite if it takes more than 60 seconds. (If you need more information about Mocha testing framework, see Selenium/Explanation/Stack.) That is usually plenty when you're just running tests, but it's usually not enough when you're debugging. To extend the timeout to 60 minutes, set Either run this manually from the terminal or, to make it easier for next time, set them from shell configuration file ( export DEBUG=true If you prefer, you can create an DEBUG=true browser.debug()Put Run Selenium testsTo speed up the debugging, you will probably want to run only one test. See Selenium/How-to/Run a subset of a test suite. Test suite will stop when it reaches npm run selenium-test ... The execution has stopped! You can now go into the browser or use the command line as REPL (To exit, press ^C again or type .exit) ... Use the browser developer tools and WebdriverIO REPL interface to debug. ExamplesFor example, you can ask for browser URL. [0-0] › browser.getUrl() 'http://localhost:8080/w/index.php?title=Special:UserLogin' Or, if an element with ID [0-0] › $('#pt-login-1').isDisplayed() false [0-0] › $('#pt-login-2').isDisplayed() true More information |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |