Selenium Driver Pageload is not working in safari browser

+1 vote

Am trying to wait tll page loads before entering login credential, But it's not working in safari browser.

public static void WaitForPageLoad(this IWebDriver driver,int timeoutInSeconds = 15)
        {
            try
            {
                driver.WaitUntil(webDriver => webDriver.ExecuteJavaScript<string>("return document.readyState;")
                                                       .Equals("complete"), timeoutInSeconds);
            }
            catch (Exception ex)
            {
                Console.WriteLine($"Couldn't wait for page load to finish {ex}");
                throw;
            }
        }

it
Jun 21, 2020 in Software Testing by Kumar
• 130 points
1,037 views
Hey @Kumar, Is there any error or exception that you are encountering in the process?

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Software Testing

+1 vote
2 answers

Click Element, Button (any click keyword) is not working on IE, though same is working on Chrome, safari, edge

Have you tried capabilities for ignore zoom ...READ MORE

answered Jul 28, 2020 in Software Testing by Pavan Andi
1,167 views
+1 vote
1 answer

How can we connect Selenium to Existing browser in Ruby Programming language?

Check this out https://www.browserstack.com/docs/automate/sele ...READ MORE

answered Aug 11, 2020 in Software Testing by Karan
• 19,610 points
1,503 views
+1 vote
1 answer

Data driven test through Ms Excel is not entering the values properly in to the app only 1 is entering

Hi, @Faha, Chromedriver version should be shown in ...READ MORE

answered Oct 28, 2020 in Software Testing by Gitika
• 65,770 points
1,946 views
+1 vote
3 answers

What is Functional Testing in Software Testing?

Hello, I hope this info is useful to ...READ MORE

answered Aug 20, 2020 in Software Testing by anonymous
• 210 points

edited Aug 20, 2020 by Gitika 2,162 views
0 votes
2 answers

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,500 points
13,648 views
0 votes
2 answers

Problem while using InternetExplorerDriver in Selenium WebDriver

enable trusted connection  in internet explorer by ...READ MORE

answered Aug 31, 2020 in Selenium by Sri
• 3,190 points
9,130 views
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,910 points
7,209 views
0 votes
2 answers

How to use such xpath to find web elements

xpath are two types. 1) Absolute XPath:    /html/b ...READ MORE

answered Sep 3, 2020 in Selenium by Sri
• 3,190 points
7,864 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP