ДЗ #2
This commit is contained in:
@@ -50,7 +50,6 @@ public class MainPage {
|
||||
|
||||
final WebElement chosen = els.get(ThreadLocalRandom.current().nextInt(els.size()));
|
||||
final String href = chosen.getAttribute("href");
|
||||
System.out.println("Selected category href = " + href);
|
||||
|
||||
((JavascriptExecutor) driver)
|
||||
.executeScript("arguments[0].scrollIntoView({block:'center'});", chosen);
|
||||
|
||||
Reference in New Issue
Block a user