Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/310.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 动作移动不适用于:Firefox版本:48和Selenium:3.0.1_Java_Selenium_Selenium Webdriver_Webdriver_Automated Tests - Fatal编程技术网

Java 动作移动不适用于:Firefox版本:48和Selenium:3.0.1

Java 动作移动不适用于:Firefox版本:48和Selenium:3.0.1,java,selenium,selenium-webdriver,webdriver,automated-tests,Java,Selenium,Selenium Webdriver,Webdriver,Automated Tests,动作移动不适用于:Firefox版本:48和Selenium:3.0.1 有什么想法吗?即使在更新浏览器时,也会出现相同的问题 public void waitAndClickFirstDrivingExperiencesOption(WebElement element) throws Exception { WebDriverWait wait2 = new WebDriverWait(driver, 30); Base_Page basePage = new Bas

动作移动不适用于:Firefox版本:48和Selenium:3.0.1

有什么想法吗?即使在更新浏览器时,也会出现相同的问题

    public void waitAndClickFirstDrivingExperiencesOption(WebElement element) throws Exception {
    WebDriverWait wait2 = new WebDriverWait(driver, 30);
    Base_Page basePage = new Base_Page(driver);
    try {
        Boolean elementPresent = wait2.until(ExpectedConditions.elementToBeClickable(element)).isEnabled();
        if (elementPresent == true) {
            //Provide a slight timeout before clicking on the element
            basePage.scrollToElementByLocator(element);
            Thread.sleep(1000);
            basePage.actionMoveAndClick(element);
            System.out.println("Clicked on the first supercars link, using locator: " + element.toString());
        }}catch (StaleElementReferenceException elementUpdated) {
            element = this.driver.findElement(By.xpath(".//*[@id='prd_listing']/div/li[1]/a"));
            Boolean elementPresent = wait2.until(ExpectedConditions.elementToBeClickable(element)).isEnabled();
            if (elementPresent == true) {
            basePage.scrollToElementByLocator(element);
            Thread.sleep(1000);
            basePage.actionMoveAndClick(element);
            System.out.println("Clicked on the first supercars link (Stale Exception), using locator: " + element.toString());
            }
        }catch (Exception e) {
            System.out.println("Exception! - could not click on the first supercars link, Exception: " + e.toString());
            throw (e);
        } finally {
        }
    }
异常:org.openqa.selenium.unsupportedCommand异常:POST /会话/a9265a9c-f425-4875-82d6-401ff75b1a25/moveto与a不匹配 已知命令生成信息:版本:“3.0.1”,版本:“1969d75”,时间: “2016-10-18 09:48:19-0700”


它不起作用,因为在geckodriver/marionette中还没有实现Actions API


您可以使用旧的firefoxdriver并在FF v47上降级,使其在firefox上工作。

它不工作,因为geckodriver/marionette中尚未实现Actions API


您可以使用旧的firefoxdriver并在FF v47上进行降级,以使其在firefox上工作。

谢谢如果我需要在firefox而不是chrome上运行测试用例,您会给出什么建议?谢谢如果我需要在firefox而不是chrome上运行测试用例,您会给出什么建议?重复的重复的重复的