Open kyleect opened 4 years ago
Api/syntax maybe?
await loginForm.do(
$ => $.username.sendKeys("username"),
$ => $.password.sendKeys("password"),
$ => $.loginButton.click(),
)
Or
await loginForm.do(
$ => $.username.sendKeys("username")
&& $.password.sendKeys("password")
&& $.loginButton.click()
)
Getting elements and acting on them are both async actions. This requires two separate
await
statements. Element id caching won't work because it has to be assumed to be async regardless of cache status.Example: