1

I'm executing a simple Selenium Java program:

package Testcases;

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

public class First {

    public static void main(String[] args) {
        // TODO Auto-generated method stub
        System.setProperty("Webdriver.chrome.driver", "C:\\Users\\ashwi\\Downloads\\chromedriver_win32\\chromedriver.exe");
        WebDriver driver = new ChromeDriver();
        driver.get("url");
        driver.quit();
    }
}

I am getting this error:

org.openqa.selenium.remote.service.DriverService$Builder getLogOutput
INFO: Driver logs no longer sent to console by default;

How can I resolve this?

desertnaut
  • 57,590
  • 26
  • 140
  • 166
yogesh uh
  • 11
  • 1
  • 2

5 Answers5

1

These log messages...

Jun 30, 2023 3:35:03 AM org.openqa.selenium.remote.service.DriverService$Builder getLogOutput
INFO: Driver logs no longer sent to console by default;

...aren't any indication of any error as such but INFO logs which states that the INFO logs are no more observed in the console by default.

To see the INFO logs back within the console you have configure the setting explicitly.

undetected Selenium
  • 183,867
  • 41
  • 278
  • 352
0

you have to put the below line

ChromeDriverService service=new ChromeDriverService.Builder().withLogOutput(System.out).build();

webDriver driver=new ChromeDriver(service);

ref: https://www.selenium.dev/documentation/webdriver/browsers/chrome/#service

ItzmeSk
  • 11
  • 2
-1

3 points here:

  1. Your error message is missing.
  2. You didn't mention the url path.
  3. You have mentioned driver.get("url"). You are calling url as a string when it should be passed as an argument. Like this: driver.get(url)
-1

I extract the zip file and change this line System.setProperty("Webdriver.chrome.driver", "C:\Users\Downloads\chromedriver.exe");

hope it works

Guest
  • 1
  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Jul 10 '23 at 08:40
-1

Need to update the new browser version and save in this location