Skip to content

[🐛 Bug]: Exception in thread "AWT-EventQueue-0" java.lang.NoSuchMethodError: 'org.openqa.selenium.Platform org.openqa.selenium.Platform.family()' #15010

@k51k51

Description

@k51k51

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

No one assigned

    Labels

    I-defectSomething is not working as intendedI-questionApplied 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.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions