-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Closed
Labels
I-defectSomething is not working as intendedSomething is not working as intendedI-questionApplied to questions. Issues should be closed and send the user to community resources.Applied to questions. Issues should be closed and send the user to community resources.J-issue-templateApplied to issues not following the template, or missing information.Applied to issues not following the template, or missing information.
Description
What happened?
I wrote a java program using the selenium library, but it gives a bug error. Java code has thread codes.
==> java.lang.NoSuchMethodError: 'org.openqa.selenium.Platform org.openqa.selenium.Platform.family()'
How can we reproduce the issue?
selenium webdriver works very nicely in another application without thread. WHY?Relevant log output
/***************************************************************************
* Launch the application.
* //----------------MAIN MAIN MAIN MAIN MAIN MAIN ---------------------
***************************************************************************/
public static void main(String[] args) {
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
javaping window = new javaping();
javaping.frmKoniversitesi.setVisible(true);
System.setProperty("webdriver.chrome.driver", "C:\\EMBEDDED\\C:\\EMBEDDED\\BMS_TARAYICI_JAVA\\chromedriver-win64\\chromedriver.exe");
ChromeOptions options = new ChromeOptions();
// options.addArguments("--headless");// web page invisible yapmak
// options.addArguments("--disable-gpu"); // Disable GPU hardware acceleration
// driver = new ChromeDriver(options);
options.setBrowserVersion("latest");
driver = new ChromeDriver(options);
System.out.println("DENEME----------------------------------------> " );
driver.get("http://172.26.8.201/");
} catch (Exception e) {
e.printStackTrace();
}
}
});Operating System
windows 10
Selenium version
4.27
What are the browser(s) and version(s) where you see this issue?
CHROME 131
What are the browser driver(s) and version(s) where you see this issue?
CHROME 131
Are you using Selenium Grid?
4.27
Metadata
Metadata
Assignees
Labels
I-defectSomething is not working as intendedSomething is not working as intendedI-questionApplied to questions. Issues should be closed and send the user to community resources.Applied to questions. Issues should be closed and send the user to community resources.J-issue-templateApplied to issues not following the template, or missing information.Applied to issues not following the template, or missing information.