Error of display page with selenium

woodhzqj

New Member
i am using selenium to simulate a from .The problem now in the resulat page selenium confuse in displaying the value of text : it show me "parisl" in the first textFiled and "marseile" in the second. i can't understand what's the problem This is my code\[code\]public class SeleniumExample {public static void main(String[] args) throws InterruptedException { // The Firefox driver supports javascript FirefoxProfile profile = new FirefoxProfile(); profile.setEnableNativeEvents(true); RemoteWebDriver driver = new FirefoxDriver(profile); // WebDriver driver = new FirefoxDriver(); // And now use this to visit Google driver.get("http://www.voyages-sncf.com/"); // Find the text input element by its name driver.findElement(By.name("origin_city")).sendKeys("paris"); driver.findElement(By.id("train-destination-city")).sendKeys("marseille"); Thread.sleep(4000); driver.findElement(By.id("train-book")).click();}}\[/code\]
 
Back
Top