0

当我被重定向到 Paypal 的沙箱站点时,我的 java 命令需要永远执行。最简单的命令需要 5 分钟以上的时间才能执行。任何人都知道我可以如何加快这个过程?

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

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

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

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

聚甲醛:

<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>
4

0 回答 0