Selenium is oppening an additional page with data:, - Stack Overflow

When I run the program, Selenium is opening the page I'm asking along with an additional tab with

When I run the program, Selenium is opening the page I'm asking along with an additional tab with data:,

I'm using IntelliJ with Maven an this is my code:

package Selenium;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;

public class Main {
    public static void main(String[] args) {
        WebDriver driver = new ChromeDriver();
        System.setProperty("webdriver.chrome.driver", "chromedriver.exe");
        driver.get("/");
    }
}

Those are the dependecies for selenium:

    <dependencies>
        <!-- .seleniumhq.selenium/selenium-java -->
        <dependency>
            <groupId>org.seleniumhq.selenium</groupId>
            <artifactId>selenium-java</artifactId>
            <version>4.27.0</version>
        </dependency>

        <!-- .seleniumhq.selenium/selenium-manager -->
        <dependency>
            <groupId>org.seleniumhq.selenium</groupId>
            <artifactId>selenium-manager</artifactId>
            <version>4.27.0</version>
        </dependency>
    </dependencies>

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1736105707a3859917.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信