javascript - Wait for user action -
i looking solution, if possible wait data entered user in protractor.
i mean test stop while , can enter value , these data used in further tests.
i tried use javascript prompt, did not much, maybe possible enter data in os terminal?
please give me example if possible.
i not recommend mixing automatic , manual selenium browser control.
that said, can use explicit waits wait things happen on page, e.g. can wait text present in text input
, or element become visible, or page title equal expect, there different expectedconditions built-in protractor
, can write own custom expected conditions wait for. have set reasonable timeout though.
alternatively, can pass user-defined parameters through browser.params
, see:
example:
protractor my.conf.js --params.login.user=abc --params.login.password=123
then, can access values in test through browser.params
:
var login = element(by.id("login")); login.sendkeys(browser.params.login.user);
Comments
Post a Comment