smaction

RemoteWebDriver

Dec 13th, 2011
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.35 KB | None | 0 0
  1.     if (browse.equals("IE")) {
  2.             System.out.println(browse);
  3.            
  4.             driver = new RemoteWebDriver(
  5.                     new URL("http://localhost:4444/wd/hub"),
  6.                     DesiredCapabilities.internetExplorer());
  7.  
  8.         }
  9.         if (browse.equals("FF")) {
  10.  
  11.             driver = new RemoteWebDriver(
  12.                     new URL("http://localhost:4444/wd/hub"),
  13.                     DesiredCapabilities.firefox());
  14.         }
  15.  
Advertisement
Add Comment
Please, Sign In to add comment