Spread the love

How To Sync Applications With Selenium Execution

Spread the love

In this post we will see how to sync the selenium test execution with Webpage. Webpage loading depends on the network connection and speed. 

The static pages or weldefined pages takes times to load. But like any other tools Selenium executes steps very fast. To make it sync with web page loading.
Selenium has given two options..
1. Either go to default option in the IDE,Options–>Options–>General Tab–>Default Timeout
change the default time out option.

or
2. If you are using some Editor other than Selenium IDE like Eclipse,then you can use

thread.sleep(timeout time)

More sophisticated options are also there..

waitForAlertNotPresent
waitForAlertPresent
waitForElementPresent
waitForElementNotPresent
waitForTextPresent
waitForTextNotPresent
waitForPageToLoad
waitForFrameToLoad

Ajax even though lightweight takes some times to transfer the data via JSON ,
That time this techniques will come handy.




Spread the love
READ  How To Resolve UnhandledAlertException While working with Alert Box in WebDriver in Selenium
Animesh Chatterjeehttps://techtravelhub.com/
I am the founder and owner of the blog - TechTravelHub.com, always love to share knowledge on test automation,tools,techniques and tips.I am a passionate coder of Java and VBScript.I also publish articles on Travel ideas and great honeymoon destinations.Apart from these, I am a gear-head,love to drive across India. I have shared lots of articles here on How to travel several parts of India.Customization of cars aka car modification is my another hobby.Get in touch with me on ani01104@gamil.com

Related Articles

How to Resolve NoSuchSessionException in selenium free?

How to Resolve NoSuchSessionException in selenium? NoSuchSessionException in Selenium is a tricky...

Comments

Recent Posts

Super Keyword in Java Simplified

Super Keyword Super Keyword in Java Simplified: Java defines a special...

Learn Object Repository in UFT in An Efficient and Fast Manner

Object Repository in UFT The post will cover the following...

Learn What Primary Tools For Test Automation

Primary Tools For Test Automation According to the Gartner report...

EDITOR PICKS


Spread the love