You can also check pageloaded using following code
IWait<IWebDriver> wait = new OpenQA.Selenium.Support.UI.WebDriverWait(driver, TimeSpan.FromSeconds(30.00));
wait.Until(driver1 => ((IJavaScriptExecutor)driver).ExecuteScript("return document.readyState").Equals("complete"));
More Related Contents:
- What is the difference between ChromeDriver and WebDriver in selenium?
- Selenium Web Driver & Java. Element is not clickable at point (x, y). Other element would receive the click
- Element MyElement is not clickable at point (x, y)… Other element would receive the click
- Selenium webdriver: Modifying navigator.webdriver flag to prevent selenium detection
- How to resolve ElementNotInteractableException: Element is not visible in Selenium webdriver?
- Selenium WebDriver throws Exception in thread “main” org.openqa.selenium.ElementNotInteractableException
- How can I ask the Selenium-WebDriver to wait for few seconds in Java?
- Selenium WebDriver How to Resolve Stale Element Reference Exception?
- How to handle windows file upload using Selenium WebDriver?
- Unable to import org.openqa.selenium.WebDriver using Selenium and Java 11
- Cannot resolve constructor FirefoxDriver(org.openqa.selenium.firefox.FirefoxProfile)
- pageLoadTimeout in Selenium not working
- The type FluentWait is not generic; it cannot be parameterized with arguments error for FluentWait Class through Selenium and Java
- How to solve the error “Not a valid XPath expression”
- Selenium WebDriver: Wait for complex page with JavaScript to load
- How to select an item from a dropdown list using Selenium WebDriver with java?
- Equivalent of waitForVisible/waitForElementPresent in Selenium WebDriver tests using Java?
- Is there a way to use Selenium WebDriver without informing the document that it is controlled by WebDriver?
- Selenium WebDriver and DropDown Boxes
- Tools for measuring UI Performance [closed]
- java.lang.IllegalAccessError: tried to access method com.google.common.util.concurrent.SimpleTimeLimiter. when using Selenium-Java 3.5.1 or above
- java.lang.NoSuchMethodError: com.google.common.base.Preconditions.checkArgument(ZLjava/lang/String;I)V with IE and Selenium through Java
- How to Conceal WebDriver in Geckodriver from BotD in Java?
- Why do some elements exist but not interactable/displayed?
- Does Selenium v3.141 support Java 13?
- How to resolve, Stale element exception? if element is no longer attached to the DOM?
- Compound class names are not supported error in WebDriver
- Exception in thread “main” java.lang.NoSuchMethodError: com.google.common.base.Preconditions.checkState(ZLjava/lang/String;Ljava/lang/Object;)
- How to mouse hover using java through selenium-webdriver and Java
- Set Chrome’s language using Selenium ChromeDriver