angularjs - protractor browser.pause() debugger exists Selenium -
i'm using protractor 2.1.0 webdriver. i've got test want debug put in browser.pause() command.
'allows deleting level versions', -> browser.get('/api#/costings') element(by.id("edit")).click() element(by.id("versions")).click() count=element.all(by.id("listing")).count() first=element.all(by.id("listing")).first() browser.pause() expect(element.all(by.id("listing")).count()).toequal(parseint(count) - 1)
this stopped tests @ point opening webdriver debugger. type single character shuts down selenium. i'm trying type in 'repl' enter interactive mode.
------- webdriver debugger ------- starting debugger agent. debugger listening on port 5858 ready press c continue next webdriver command press d continue next debugger statement type "repl" enter interactive mode type "exit" break out of interactive mode press ^c exit controlflow::1 | frame::797 | | (pending) task::796<asynchronous test function: it()> | | | task: asynchronous test function: it() | | | frame::805 | | | | (pending) task::972<waiting debugger attach> | | | | | task: waiting debugger attach | | | | | @ [object object].<anonymous> (/home/map7/pais/spec/javascripts/protractor_specs/costings/edit_costing_spec.js.coffee:17:15) | | | | | (active) frame::1618 | | | | task::986<protractor.waitforangular()> | | | | | task: protractor.waitforangular() | | | | | @ [object object].<anonymous> (/home/map7/pais/spec/javascripts/protractor_specs/costings/edit_costing_spec.js.coffee:18:51) wd-debug> attempting shut down selenium nicely 15:00:43.732 info - checking resource aliases 15:00:43.733 info - command request: shutdownseleniumserver[, ] on session null 15:00:43.734 info - shutdown command received 15:00:43.735 info - initiating shutdown 15:00:43.735 info - got result: ok on session null selenium standalone has exited code 0
after selene exits can type in repl , enter looks debug mode, cannot connect backend it's closed can no longer perform debug commands.
how stop selenium crashing?
i've tried updating latest
webdriver-manager update selenium standalone date. chromedriver date.
update
hitting 'd' or 'c' causes selenium shutdown.
completed 200 ok in 25.4ms (views: 20.0ms | activerecord: 3.5ms) press c continue next webdriver command press d continue next debugger statement press ^c exit -- webdriver control flow schedule |- waiting debugger attach |--- @ [object object].<anonymous> (/home/map7/pais/spec/javascripts/protractor_specs/invoices/create_invoices_spec.js.coffee:17:15) |- protractor.waitforangular() |--- @ [object object].<anonymous> (/home/map7/pais/spec/javascripts/protractor_specs/invoices/create_invoices_spec.js.coffee:19:20) |- protractor.waitforangular() |--- @ [object object].<anonymous> (/home/map7/pais/spec/javascripts/protractor_specs/invoices/create_invoices_spec.js.coffee:20:27) wd-debug> attempting shut down selenium nicely 13:36:14.190 info - checking resource aliases 13:36:14.191 info - command request: shutdownseleniumserver[, ] on session null 13:36:14.192 info - shutdown command received 13:36:14.193 info - initiating shutdown 13:36:14.193 info - got result: ok on session null selenium standalone has exited code 0
Comments
Post a Comment