Суть: Зайти на сайт; ввести в блоке поиск город - Киев; дата заезда - завтрешние число; дата выезда - послезавтрешние число; нажать на кнопку "Поиск".
Есть тест
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 Untitled 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 testUntitled() throws Exception {
selenium.open("/");
selenium.type("id=search_city", "Киев");
selenium.click("css=li.DropMenuItem.autocompleter-selected");
selenium.click("xpath=(//button[@id='button0'])[2]");
selenium.click("css=td.valid.hover");
selenium.click("id=submit_main");
selenium.waitForPageToLoad("30000");
}
@After
public void tearDown() throws Exception {
selenium.stop();
}
}
Eclipse выдает ошибку not found в строке selenium.click("css=td.valid.hover");Но в данном случае я привязывалась к конкретному числу (дата заезда- 05.06, дата выезда - 06.06).Подскажите, пожалуйста, как сделать так что бы дата менялась автоматически и как исправить данную ошибку.

