This is my first code in automation :
package Automationframework;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
public class FirstTestClass {
public static void main(String[] args) throws InterruptedException {
System.setProperty("webdriver.gecko.driver", "D:\workbox\Online Store\geckodriver.exe");
WebDriver driver = new FirefoxDriver();
driver.get("http://www.store.demoqa.com");
System.out.println("Successfully opened the website www.Store.Demoqa.com");
Thread.sleep(5000);
driver.quit();
}
}
And it is throwing Error:
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
Invalid escape sequence (valid ones are \b \t \n \f \r \" \' \\ )
at Automationframework.FirstTestClass.main(FirstTestClass.java:13)**