I have used the 1st meathod for launching into the chrome using selenium driver but getting error.

m y error Description Resource Path Location Type Cannot instantiate the type WebDriver HelloWorld.java /first java pgm/src line 13 Java Problem ChromeDriver cannot be resolved to a type ChromeTest.java /Chrome Test/src/rms line 8 Java Problem ChromeDriver cannot be resolved to a type ChromeTest.java /ChromeBrowserTest/src/Browserpackage line 8 Java Problem The method main cannot be declared static; static methods can only be declared in a static or top level type HelloWorld.java /first java pgm/src line 7 Java Problem WebDriver cannot be resolved to a type ChromeTest.java /Chrome Test/src/rms line 8 Java Problem WebDriver cannot be resolved to a type ChromeTest.java /ChromeBrowserTest/src/Browserpackage line 8 Java Problem my code is package Browserpackage; public class ChromeTest { public static void main(String args[]){ String exepath =”C:\\Users\\asujathan\\Downloads\\chromedriver_win32\\chromedriver.exe”; System.getProperty(“webdriver.chrome.driver”,exepath); WebDriver driver = new ChromeDriver(); driver.get(id); } } Please help me

Default Asked on May 4, 2018 in Selenium WebDriver.
Add Comment
  • 0 Answer(s)
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.