You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is not an error in the library it is working as intended. If you look at the error it is stating that you do not have the correct type in the result function. The last get function in your chain is returning a HTMLElement and in your result function you are putting an array of HTMLElement ( [ HTMLElement] ) if you remove the syntax for an array then the error should go away. For other people that are having similar issues, make sure to put the correct type in your result function based off what the last action in your chain is returning.
get the error above for the following code
` func enterContests()
{
open(URL(string: "https://prizegrab.com")!)
>>> get(by: .XPathQuery("//a[@Class='login-link']"))
>>> click(then: .wait(1.5))
>>> get(by: .id("login-with-email"))
>>> click(then: .wait(1.5))
>>> get(by: .id("login-email"))
>>> setAttribute("value", value: username.stringValue)
>>> get(by: .id("login-password"))
>>> setAttribute("value", value: pass.stringValue)
>>> get(by: .XPathQuery("//div[contains(@Class,'form-login')]/form"))
>>> submit(then: .wait(3))
>>> get(by: .contains("href", "/logout"))
=== handleResult
}
`
the line ===handleResult is the offending line
I'm not sure what I did wrong
The text was updated successfully, but these errors were encountered: