792 | driver.findElements(new ByChained(by1, by2))
793 |
794 |
854 | [FindsBy(How = How.Name, Using = "myElementName")]
855 | public IWebElement foundElement;
856 |
857 | [FindsBy(How = How.TagName, Using = "a")]
858 | public IList{IWebElement} allLinks;
859 |
860 |
868 | // Will find the element with the name attribute matching the first of "anElementName"
869 | // or "differentElementName".
870 | [FindsBy(How = How.Name, Using = "anElementName", Priority = 0)]
871 | [FindsBy(How = How.Name, Using = "differentElementName", Priority = 1)]
872 | public IWebElement thisElement;
873 |
874 |
1411 | IWait wait = new WebDriverWait(driver, TimeSpan.FromSeconds(3))
1412 | IWebElement element = wait.Until(ExpectedConditions.ElementExists(By.Id("foo")));
1413 |
1414 |
1511 | new HypotheticalComponent().Load();
1512 |
1513 |
1620 | // Store the current window handle so you can switch back to the
1621 | // original window when you close the popup.
1622 | string current = driver.CurrentWindowHandle;
1623 | PopupWindowFinder finder = new PopupWindowFinder(driver);
1624 | string newHandle = finder.Click(driver.FindElement(By.LinkText("Open new window")));
1625 | driver.SwitchTo.Window(newHandle);
1626 |
1627 | 1792 | new SlowHypotheticalComponent().Load(); 1793 |1794 |
1907 | IWait wait = new WebDriverWait(driver, TimeSpan.FromSeconds(3))
1908 | IWebElement element = wait.Until(driver => driver.FindElement(By.Name("q")));
1909 |
1910 |