English 中文(简体)
采用Selenium 司机 测试Ajax下降并提交
原标题:Using Selenium FirefoxDriver Code to test Ajax dropdown and submit it

仅仅两天后,我才开始使用火fox司机进行len测试! 你们的猜测是正确的(他们知道自己是大的还是小的,是新的)。

我被指派到code Selenium test cases to automate the web application browsing

i 正在使用Eclipse IDE 和应用程序进行火灾fox。

在这项应用中,我们有一个数据收集的文本箱。 它是利用Ajax开发的。

现在我可以在这个箱子上打字,该箱也显示结果(例如谷歌搜索、OR,就像你向您推荐标签一样)。 流出问题,但可以选择并提交。

珍视一切,但徒劳无益:

放弃标准术语,以予以解决。

Please reply Thanks with anticipation

这是我尝试的:

被保护的真空选择Dropdoen()抛射例外情形{

    String str = "text to select";
    for (int i=0; i<str.length(); i++) {
        Thread.sleep(300);
        driver.findElementById("input_dealer").sendKeys(""+str.charAt(i));

    }
     driver.findElementById("input_dealer").setSelected();
    driver.getKeyboard().pressKey(Keys.ENTER);



}

Can any one please explain using selenium object to call waitForCondition() function. I am using FireFoxDriver object in my program. Thanks

问题回答
protected void selectDropdown() throws Exception {
    String str = "text to select";
    driver.findElement(By.id("input_dealer")).sendKeys(str, Keys.RETURN);
}




相关问题
ajax login using httpRequest?

I am trying to develop my login script to give feedback to the user if the login is valid or not. Basically if it isn t correct a div box will show saying its wrong, if its correct it will show its ...

Virtual Tour using sketch up, ajax, flash technologies

I want to know if there are existing technology that make your 3d models in sketch into virtual tours, using either Ajax or Flash for web presentation. If there s none, which will be a good approach ...

How can i update div continuously

I have asp.net application where i have a div which showing the value from other site. The value of that site is changing continuously. I want that my div will automatically update in some interval ...

热门标签