How do I provide a wait time in Selenium for loading the page?

Asked by Last Modified  

Follow 2
Answer

Please enter your answer

Automation Testing, Selenium, Protractor, JMeter, Api Automation, Database Testing, SQL, Testing

Thanks for reaching me. i think, its not good style of coding to simply put wait timing loading the page. For example, you want to redirect the page1 Solution 1 1. Use Web Driver wait and set some time of interval and conditions for elements over page1 2. Redirect to the page1 2. Identify and...
read more
Thanks for reaching me. i think, its not good style of coding to simply put wait timing loading the page. For example, you want to redirect the page1 Solution 1 1. Use Web Driver wait and set some time of interval and conditions for elements over page1 2. Redirect to the page1 2. Identify and verify some elements over loading the page1 Solution 2 Use Java Script Executor 1. Store the result of readystate of document. 2. Verify if it returns complete which says page is loaded successfully read less
Comments

Selenium Trainer

webdriverwait or use while loop till page load
Comments

Related Questions

Which language is demand now for Selenium: Python or Java?
Most of the companies are using JAVA compared to python for Selenium to automate web applications.
Profile Photo
Pradeep
0 0
View Comments6
How long will you take to complete selenium course as a weekend batch ? And what is the time duration for each class ?
Selenium and Java basics will take require around 8 hours of coaching. 2 hours every week. Rest, the student needs to practice at home on a daily basis
Profile Photo
Ramachandran
What is selenium grid used for?
Selenium Grid is an essential tool for anyone looking to run tests on multiple browsers and operating systems efficiently. It allows you to perform distributed testing, parallel execution, and...
Profile Photo
Praveen
0 0
View Comments5
Which one is good to learn, Salesforce or Selenium? I know they are entirely different, but which one will be more in demand in the future?
Selenium is good to learn. It has good future. Learn selenium automation & expertise in using Selenium 3.0 to create robust, browser-based regression automation suites and tests, scale and distribute...
Profile Photo
Arumugam
0 0
View Comments5
What is the cost of ISTQB Test? What is the procedure to apply for it? I am a graduate in B.Sc. Can this ISTQB test help me in finding a IT job?
Hi Jagadeesh, Getting a job in Testing needs good conceptual knowledge in Software Engineering, Testing, Test Methodologies and types, Test Reporting and Metrics. ISTQB will have questions more related...
Profile Photo
Jagadeesh

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

Selenium Lesson on TestNg
Testing Annotations @BeforeSuite: The annotated method will be run before all tests in this suite have run. @AfterSuite: The annotated method will be run after all tests in this suite have run. @BeforeTest:...
Profile Photo

Difference between find element () and findelements () in webdriver
findElement Find the first element within the current page using the given "locating mechanism". Returns a single WebElement. findElements Find all elements within the current...
Profile Photo

Selenium Interview Question and answers
https://www.youtube.com/watch?v=YWdAh3gTc6c
B

Bhanu P.

0 0
View Comments0

How to Read Data From Property File
1. Create a property file using New > File > Given name - like config.properties (it must be saved with .properties). 2. Add data in config.properties like: browser = chrome environment = qa 3....
S

Sarthak C.

0 0
View Comments0

doWhile example in Java
public class doWhilePracticleEx { public void test() { } public static void main(String args) { String q1 = "Who is PM of India?"; String a1 = "Sonia Gandhi"; String a2 = "Rahul Gandhi"; String a3...
S

Sarthak C.

0 0
View Comments0

Recommended Articles

Applications engineering is a hot trend in the current IT market.  An applications engineer is responsible for designing and application of technology products relating to various aspects of computing. To accomplish this, he/she has to work collaboratively with the company’s manufacturing, marketing, sales, and customer...

Read full article >

Information technology consultancy or Information technology consulting is a specialized field in which one can set their focus on providing advisory services to business firms on finding ways to use innovations in information technology to further their business and meet the objectives of the business. Not only does...

Read full article >

Microsoft Excel is an electronic spreadsheet tool which is commonly used for financial and statistical data processing. It has been developed by Microsoft and forms a major component of the widely used Microsoft Office. From individual users to the top IT companies, Excel is used worldwide. Excel is one of the most important...

Read full article >

Business Process outsourcing (BPO) services can be considered as a kind of outsourcing which involves subletting of specific functions associated with any business to a third party service provider. BPO is usually administered as a cost-saving procedure for functions which an organization needs but does not rely upon to...

Read full article >

Looking for Selenium Training?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you