Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wait = new WebDriverWait(driver, TimeSpan.FromSeconds(WaitTimeout));
- var nextPageButton = wait.Until(ExpectedConditions.ElementToBeClickable(NextPageButtonSelector));
- ((IJavaScriptExecutor)driver).ExecuteScript("arguments[0].scrollIntoView(true);", nextPageButton);
- ((IJavaScriptExecutor)driver).ExecuteScript("arguments[0].style.width = '100%';", nextPageButton);
- ((IJavaScriptExecutor)driver).ExecuteScript("arguments[0].style.height = '100%';", nextPageButton);
- ((IJavaScriptExecutor)driver).ExecuteScript("arguments[0].style.position = 'fixed';", nextPageButton);
- nextPageButton.Click();
Add Comment
Please, Sign In to add comment