Selenium IDE waitForVisible too waitForNotVisible Commands

Setting hold off status inward Selenium IDE or webdriver agency pausing your essay out instance execution till expected hold off status stand upward for alongside actual hold off condition. You tin sentiment unlike hold off status examples for selenium IDE inward THIS LINK in addition to for spider web driver on THIS LINK. Selenium IDE has 2 related waiting commands to
wait till element's visibility or invisibility from the page. Those commands are "waitForVisible" in addition to "waitForNotVisible" Commands. As you lot know, element's edit mightiness is unlike in addition to then element's visibility therefore don't hold upward confused inward these 2 terms.

"waitForVisible" Command
This ascendency volition hold off till chemical ingredient visible on the page. Once ascendency volition visible on page, selenium IDE volition acquire for executing adjacent command.

"waitForNotVisible" Command
Same way, "waitForNotVisible" ascendency volition hold off for invisibility of the chemical ingredient from page. Run bellow given instance inward your selenium IDE in addition to sentinel what happens.

New Test
CommandTargetValue
setSpeed2000
open
waitForVisible//input[@id='text3']
type//input[@id='text3']Hidden Text box is visible now
refreshAndWait

waitForNotVisible//input[4]
type//input[@id='text3']To Hide text box is non visible now

"refreshAndWait" ascendency volition refresh the page in addition to hold off till page loaded completely. You tin sentiment consummate listing of selenium IDE commands alongside instance on THIS PAGE and if you lot are webDriver learner in addition to then THIS WEBDRIVER TUTORIAL volition helps you lot to larn it quickly.

More interesting articles here :Generation Enggelmundus Internet Marketing Tool here :Zeageat IM http://www.software-testing-tutorials-automation.com/
Post a Comment (0)
Previous Post Next Post