为什么在PayPal的沙盒网站上运行驱动程序命令需要这么长时间

时间:2013-08-30 22:31:48

标签: selenium paypal

当我被重定向到Paypal的沙箱网站时,我的java命令需要永远执行。最简单的命令需要花费5分钟才能执行。有谁知道如何加快这个过程?

这是一个示例命令,非常简单:

driver.findElement(By.id("login_email")).sendKeys("email@email.com");

https://www.sandbox.paypal.com/us/cgi-bin/webscr?cmd=_flow&SESSION=O4woPh5v7Y9g0efhaNimBqKCK1_ahbD3q-PcVGfff2kZaeCD6k3NBaSH10C&dispatch=50a222a57771920b6a3d7b606239e4d529b525e0b7e69bf0224adecfb0124e9b61f737ba21b08198dbcfd9e439351aac748846c5173df4f4

driver.findElement(By.id("continueBabySlider")).click();

POM:

<dependencies>
    <dependency>
        <groupId>org.seleniumhq.selenium</groupId>
        <artifactId>selenium-firefox-driver</artifactId>
        <version>2.33.0</version>
    </dependency>

    <dependency>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <version>4.8.1</version>
        <scope>test</scope>
    </dependency>

    <dependency>
        <groupId>org.seleniumhq.selenium</groupId>
        <artifactId>selenium-java</artifactId>
        <version>2.33.0</version>
    </dependency>
    <dependency>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <version>4.8.1</version>
    </dependency>

    <dependency>
        <groupId>org.seleniumhq.selenium</groupId>
        <artifactId>selenium-chrome-driver</artifactId>
        <version>2.0.0</version>
    </dependency>
    <dependency>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <version>4.8.1</version>
    </dependency>
    <dependency>
        <groupId>org.seleniumhq.selenium</groupId>
        <artifactId>selenium-java</artifactId>
        <version>2.32.0</version>
    </dependency>
</dependencies>

0 个答案:

没有答案