I would not recommend mixing the automatic and manual selenium browser control.
That said, you can use Explicit Waits to wait for certain things to happen on a page, e.g. you can wait for the text to be present in a text input
, or an element to become visible, or a page title to be equal to something you expect, there are different ExpectedConditions built-in to protractor
and you can easily write your own custom Expected Conditions to wait for. You would have to set a reasonable timeout though.
Alternatively, you can pass the user-defined parameters through browser.params
, see:
Example:
protractor my.conf.js --params.login.user=abc --params.login.password=123
Then, you can access the values in your test through browser.params
:
var login = element(by.id("login"));
login.sendKeys(browser.params.login.user);