Skip to main content
Bumped by Community user
formatting
Source Link
Bharat Mane
  • 6.8k
  • 11
  • 41
  • 69

After upgrading Mac OS X to Catalina, I have been trying to execute a very basic script written in Java for Firefox in Eclipse IDE 2018.
I've installed Gecko driver already through terminal and it's placed in /usr/local/bin.

Although, I've put the path in the script, System.setProperty("webdriver.firefox.marionette","/usr/local/bin/geckodriver");

it keeps showing me errorerror that Webdriver driver = new firefoxDriver cannot be resolved.

CODE:

package newproject; 
import org.openqa.selenium.WebDriver; 
import org.openqa.selenium.firefox.FirefoxDriver;  
import org.openqa.selenium.chrome.ChromeDriver; 
public class PG1 { 
public static void main(String[] args{
System.setProperty("webdriver.firefox.marionette","/usr/local/bin/geckodriver"); 
WebDriver driver = new FirefoxDriver(); 
String baseUrl =  "http://demo.test.com/test/newtours/"; String expectedTitle = "Welcome: Mercury Tours"; 
String actualTitle = ""; // launch Fire fox and direct it to the Base URL driver.get(baseUrl);
 // get the actual value of the title 
actualTitle = driver.getTitle();  (actualTitle.contentEquals(expectedTitle)){ System.out.println("Test Passed!"); } 
else { System.out.println("Test Failed"); } 
//close Fire fox driver.close(); } }

Any help would be appreciated !

After upgrading Mac OS X to Catalina, I have been trying to execute a very basic script written in Java for Firefox in Eclipse IDE 2018.
I've installed Gecko driver already through terminal and it's placed in /usr/local/bin.

Although, I've put the path in the script, System.setProperty("webdriver.firefox.marionette","/usr/local/bin/geckodriver");

it keeps showing me error that Webdriver driver = new firefoxDriver cannot be resolved.

Any help would be appreciated !

After upgrading Mac OS X to Catalina, I have been trying to execute a very basic script written in Java for Firefox in Eclipse IDE 2018.
I've installed Gecko driver already through terminal and it's placed in /usr/local/bin.

Although, I've put the path in the script, System.setProperty("webdriver.firefox.marionette","/usr/local/bin/geckodriver");

it keeps showing me error that Webdriver driver = new firefoxDriver cannot be resolved.

CODE:

package newproject; 
import org.openqa.selenium.WebDriver; 
import org.openqa.selenium.firefox.FirefoxDriver;  
import org.openqa.selenium.chrome.ChromeDriver; 
public class PG1 { 
public static void main(String[] args{
System.setProperty("webdriver.firefox.marionette","/usr/local/bin/geckodriver"); 
WebDriver driver = new FirefoxDriver(); 
String baseUrl =  "http://demo.test.com/test/newtours/"; String expectedTitle = "Welcome: Mercury Tours"; 
String actualTitle = ""; // launch Fire fox and direct it to the Base URL driver.get(baseUrl);
 // get the actual value of the title 
actualTitle = driver.getTitle();  (actualTitle.contentEquals(expectedTitle)){ System.out.println("Test Passed!"); } 
else { System.out.println("Test Failed"); } 
//close Fire fox driver.close(); } }

Any help would be appreciated !

Formatting
Source Link
Bharat Mane
  • 6.8k
  • 11
  • 41
  • 69

After upgrading Mac OS X to Catalina, I have been trying to execute a very basic script written in Java for Firefox in Eclipse IDE 2018. 
I've installed Gecko driver already through terminal and it's placed in /usr/local/bin./usr/local/bin.

Although, I've put the path in the script, System.setProperty("webdriver.firefox.marionette","/usr/local/bin/geckodriver");

it keepkeeps showing me error that Webdriver driver = new firefoxDriverWebdriver driver = new firefoxDriver cannot be resolved.

Any help would be appreciated.

Thanks A !

After upgrading Mac OS X to Catalina, I have been trying to execute a very basic script written in Java for Firefox in Eclipse IDE 2018. I've installed Gecko driver already through terminal and it's placed in /usr/local/bin.

Although, I've put the path in the script, System.setProperty("webdriver.firefox.marionette","/usr/local/bin/geckodriver");

it keep showing me error that Webdriver driver = new firefoxDriver cannot be resolved.

Any help would be appreciated.

Thanks A

After upgrading Mac OS X to Catalina, I have been trying to execute a very basic script written in Java for Firefox in Eclipse IDE 2018. 
I've installed Gecko driver already through terminal and it's placed in /usr/local/bin.

Although, I've put the path in the script, System.setProperty("webdriver.firefox.marionette","/usr/local/bin/geckodriver");

it keeps showing me error that Webdriver driver = new firefoxDriver cannot be resolved.

Any help would be appreciated !

Webdriver setup error in Eclipse, mac OsXMac OS X Catalina

After upgrading mac osxMac OS X to Catalina, I have been trying to execute a very basic script written in javaJava for firefoxFirefox in Eclipse IDE 2018. I've installed geckoGecko driver already through terminal and it's placed in /usr/local/bin. 

Although, I've put the path in the script, System.setProperty("webdriver.firefox.marionette","/usr/local/bin/geckodriver"); System.setProperty("webdriver.firefox.marionette","/usr/local/bin/geckodriver");

it keep showing me error that Webdriver driver = new firefoxDriver cannot be resolved.

Any help would be appreciated.

Thanks A

Webdriver setup error in Eclipse, mac OsX Catalina

After upgrading mac osx to Catalina, I have been trying to execute a very basic script written in java for firefox in Eclipse IDE 2018. I've installed gecko driver already through terminal and it's placed in /usr/local/bin. Although, I've put the path in the script, System.setProperty("webdriver.firefox.marionette","/usr/local/bin/geckodriver"); it keep showing me error that Webdriver driver = new firefoxDriver cannot be resolved.

Any help would be appreciated.

Thanks A

Webdriver setup error in Eclipse, Mac OS X Catalina

After upgrading Mac OS X to Catalina, I have been trying to execute a very basic script written in Java for Firefox in Eclipse IDE 2018. I've installed Gecko driver already through terminal and it's placed in /usr/local/bin. 

Although, I've put the path in the script, System.setProperty("webdriver.firefox.marionette","/usr/local/bin/geckodriver");

it keep showing me error that Webdriver driver = new firefoxDriver cannot be resolved.

Any help would be appreciated.

Thanks A

Source Link
Loading