WebDriverWait wait = new WebDriverWait(driver,5);
wait.until(ExpectedConditions.visibilityOfElementLocated(By.cssSelector(".services-new__list-item:nth-child(3) .services-new__item-title")));
WebElement element = driver.findElement(By.cssSelector(".services-new__list-item:nth-child(3) .services-new__item-title"));
Actions builder = new Actions(driver);
builder.moveToElement(element).perform();
//Ожидание 20 секунд перед закрытием браузера
Thread.sleep(20000);
//Закрыть браузер
driver.quit();
driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
WebElement market = driver.findElement(By.linkText("Маркет"));
market.click();
WebDriverWait wait = new WebDriverWait(driver,10);
wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath("//*[contains(@data-zone-data,'91542578')]//a")));
WebElement electronika = driver.findElement(By.xpath("//*[contains(@data-zone-data,'91542578')]//a"));
electronika.click();
WebElement market = driver.findElement(By.linkText("Маркет"));
market.click();
driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);
WebElement electronika = driver.findElement(By.xpath("//*[contains(@data-zone-data,'91542578')]//a"));
electronika.click();
WebElement electronika = driver.findElement(By.xpath("//*[contains(@data-zone-data,'91542578')]//a"));
electronika.click();
WebElement market = driver.findElement(By.linkText("Маркет"));
market.click();
driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
WebElement electronika = driver.findElement(By.xpath("//div[@data-zone-name='menu']//a[@href=\"/catalog--elektronika/54440\"]"));
electronika.click();
WebElement electronika = driver.findElement(By.xpath("//div[@data-zone-name='menu']//a[@href=\"/catalog--elektronika/54440\"]"));
electronika.click();