[Date Prev] [Date Next] [Prev in Thread] [Next in Thread] [Date Index] [Thread Index]

Remedy Testing Java question



**

Hello. I am learning to use Selenium WebDriver to do remedy testing.  I’ve created a basic Eclipse Java class and hoping someone here on the list can help me troubleshoot.  I’m working on a basic script that will simply open a Google webpage using Internet Explorer (IE). (Will be doing the same with FireFox later).  I’m getting errors on lines 7 and 12. 

 

Here is the code:

 

1    package mytestpack;

2

3    Import org.openqa.selenium.By;

4    import org.openqa.selenium.WebDriver;

5    import org.openqa.selenium.ie.InternetExplorerDriver;

6

7     public class OpenIE  {

8

9      public static void main(String[]args) {

10   //TODO Auto-generated method stub

11   WebDriver driver;

12   System.setProperty(“webdriver.ie.driver”, “C:\Program Files\Selenium\IEDriverServer_x64_2,53.1\IEDriverServer.exe”);

13   driver=new InternetExplorerDriver();

14   driver.get(https://google.com;);

15   }

16     }

 

 

Error on line 7 is “The public type OpenIE must be dfined in its own file”

Error on line 12 is “Invalid escape sequence (valid ones are \b \t \n \f \r \”\’\\)

 

Thank you in advance for your help!

 

Terri

 





This electronic message contains information generated by the USDA solely for the intended recipients. Any unauthorized interception of this message or the use or disclosure of the information it contains may violate the law and subject the violator to civil or criminal penalties. If you believe you have received this message in error, please notify the sender and delete the email immediately. _ARSlist: "Where the Answers Are" and have been for 20 years_