Using Selenium in a Ajax web application

On an Ajax web application or Ajax feature on web page small sections of the page will update and often the entire webpage will not load. It’s necessary to wait until this ajax process is completed before interacting with sections of the page where content or controls are yet to be rendered. The Ajax application […]

Using Selenium WaitForCondition

In this example I will tell you how you can use selenium WaitForCondition command. Below is the code for waitForElementPresent. You can do the same with WaitForCondition and pass the element id. Here I will waiting for element “//div[@id=’ctl00_contentSection_LoginPanel’]/h2″ then once the element is found continue with testing other things. This is waitForElementPresent code for […]