最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin6浏览0评论

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>
发布评论

评论列表(0)

  1. 暂无评论