Selenium Driver Pageload is not working in safari browser

0 votes

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 20, 2020 in Software Testing by Kumar
• 120 points
209 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

0 votes
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
215 views
0 votes
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,580 points
218 views
0 votes
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,870 points
143 views
0 votes
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
• 200 points

edited Aug 20, 2020 by Gitika 221 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,520 points
4,604 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,010 points
5,463 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,890 points
3,292 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 2, 2020 in Selenium by Sri
• 3,010 points
3,892 views