How to wait until
section reload using selenium webdriver?

后端 未结 1 1859
无人及你
无人及你 2021-01-27 19:00

There are multiple dropdowns in div section. If i select an option in one of the dropdown, then all the other dropdowns loads autmatically without page reload. This is because o

相关标签:
1条回答
  • 2021-01-27 19:14

    We can wait until div section have any sub section or child node.

    WebDriverWait wait = new WebDriverWait(driver, TimeSpan.FromSeconds(30));
    IWebElement myDynamicElement = wait.Until<IWebElement>((d) =>
        {
            return d.FindElement(By.XPath("//div[@id='Fruits']//*"));
        });
    
    0 讨论(0)
提交回复
热议问题