package com.example.tests;
import com.thoughtworks.selenium.Selenium;
import com.thoughtworks.selenium.SeleneseTestCase;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebDriverBackedSelenium;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import java.util.regex.Pattern;
public class _10_02 extends SeleneseTestCase {
@Before
public void setUp() throws Exception {
WebDriver driver = new FirefoxDriver();
String baseUrl = "http://hotels24.ua/";
selenium = new WebDriverBackedSelenium(driver, baseUrl);
}
@Test
public void test_10_02() throws Exception {
selenium.open("/hotels/%D0%B3%D0%BE%D1%81%D1%82%D0%B8%D0%BD%D0%B8%D1%86%D1%8B-%D0%BE%D0%B1%D0%BB%D0%B0%D1%81%D1%82%D1%8C/%D0%9A%D0%B8%D0%B5%D0%B2%D1%81%D0%BA%D0%B0%D1%8F/");
selenium.click("id=hotel_img_422");
selenium.click("//div[@id='imageGallery']/div/div/div/div/a[2]");
selenium.click("//div[@id='imageGallery']/div/div/div/div/a[2]");
selenium.click("css=div.galery-main-photo > a");
selenium.click("css=#photoId891762 > a > img.galery-page-item-a-img");
selenium.click("css=a.close-butt.closeSlideshow");
}
@After
public void tearDown() throws Exception {
selenium.stop();
}
}
Суть: зайти на сайт, кликнуть на фото гостиницы ( должно открытся окно галлереи), пощелкать кнопками вправо-влево и закрыть.Проблема заключается в том что уже на второй строчке
selenium.click("id=hotel_img_422"); вместо открытие галлереи открывается pop-up menu в header, в нем выбирается город и тест завершается с ошибкой Подскажите, пожалуйста, от куда могут браться такие команды если прописано совершенно другое.

