Radu Alexandru
Radu Alexandru

Reputation: 1

Selenium is oppening an additional page with data:,

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("https://www.youtube.com/");
    }
}

Those are the dependecies for selenium:

    <dependencies>
        <!-- https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-java -->
        <dependency>
            <groupId>org.seleniumhq.selenium</groupId>
            <artifactId>selenium-java</artifactId>
            <version>4.27.0</version>
        </dependency>

        <!-- https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-manager -->
        <dependency>
            <groupId>org.seleniumhq.selenium</groupId>
            <artifactId>selenium-manager</artifactId>
            <version>4.27.0</version>
        </dependency>
    </dependencies>

Upvotes: 0

Views: 31

Answers (0)

Related Questions