Artur Stary
Artur Stary

Reputation: 744

How to wait until element present?

I want my Selenium IDE case test to wait 10 secs for the element id = "successed" to appear, and fail the test if it won't happen within 10 secs

This is what I wrote;

Selenium.prototype.doWaitForElementIdToAppear = function(){
    selenium.doWaitForCondition("selenium.assertElementNotPresent(\"id=successed\")", "10000");
}

...but it never fails. Any help will be appreciated.

Upvotes: 5

Views: 5426

Answers (1)

Artur Stary
Artur Stary

Reputation: 744

Solved this way, using Selenium in-build function

Selenium IDE - this is working

Upvotes: 7

Related Questions