question

mterry avatar image
mterry asked mterry answered

Selenium - OnWebStepSyntaxError

What triggers this event and how can it be prevented? I am seeing this for the **go** action for web pages that take a while to load. The new Selenium session does not have the same properties as the internal browser, where you could set the **Completion** time.
iTestSelenium
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
sai_kiran avatar image
sai_kiran answered
In selenium session there is an action 'waitForPopUp', which will appear while capturing the pop up windows. If a popup does not appear with in the given time for 'waitForPopUp' action, then it will throw an error as 'OnWebStepSyntaxError'.
1 comment
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

mterry avatar image mterry commented ·

I've never used waitForPopUp. This happens with the go action. I finally had to override the

OnWebStepSyntaxError to display a warning instead of error and retry a few times.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.