@@ -0,0 +1,1446 @@
+package ru.stqa.selenium;%0A%0Aimport org.openqa.selenium.Alert;%0Aimport org.openqa.selenium.By;%0Aimport org.openqa.selenium.WebElement;%0Aimport org.openqa.selenium.support.ui.ExpectedConditions;%0Aimport org.openqa.selenium.support.ui.WebDriverWait;%0Aimport org.testng.annotations.Test;%0A%0Aimport java.util.List;%0Aimport java.util.concurrent.TimeUnit;%0A%0Apublic class SearchMovieTest extends TestNgTestBase%7B%0A%0A  @Test%0A    public void testSearchMovie() throws Exception %7B%0A    //login%0A    LoginTest.testLogin(driver);%0A%0A    //search movie%0A    driver.manage().timeouts().implicitlyWait(0, TimeUnit.SECONDS);%0A    WebDriverWait wait = new WebDriverWait(driver, 30);%0A    List%3CWebElement%3E movieBoxesBefore = driver.findElements(By.xpath(%22//*%5B@class='movie_box'%5D%22));%0A    driver.findElement(By.xpath(%22//*%5B@class='movie_box'%5D%22)).click();%0A    driver.findElement(By.xpath(%22//*%5B@title='Remove'%5D%22)).click();%0A    wait.until(ExpectedConditions.alertIsPresent());%0A    Alert alert = driver.switchTo().alert();%0A    alert.accept();%0A%0A    //check movies counter%0A    driver.findElement(By.linkText(%22Home%22)).click();%0A    wait.until(ExpectedConditions. //wait for home page to load%0A            presenceOfElementLocated(By.%0A                    xpath(%22//*%5B@class='searchbox'%5D%22)));%0A    List%3CWebElement%3E movieBoxesAfter = driver.findElements(By.xpath(%22//*%5B@class='movie_box'%5D%22));%0A    if (movieBoxesAfter.size() != movieBoxesBefore.size() - 1)%0A      throw new Error(%22%D0%A4%D0%B8%D0%BB%D1%8C%D0%BC %D0%BD%D0%B5 %D1%83%D0%B4%D0%B0%D0%BB%D0%B5%D0%BD%22);%0A  %7D%0A%7D%0A

Revert "1. moviesAfter в AddMovieTest не получает нужного значения. Wait дожидается загрузки searchbox, но фильмы могут загрузиться позже. Нужно ждать загрузки именно нужного элемента."