Advertisement
smaction

Eclipse Question

Dec 13th, 2011
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.52 KB | None | 0 0
  1. When I use:
  2.  String browse = "FF";
  3.  
  4. The following code works:
  5.     if (browse.equals("FF")) {
  6.  
  7.             driver = new RemoteWebDriver(
  8.                     new URL("http://localhost:4444/wd/hub"),
  9.                     DesiredCapabilities.firefox());
  10.         }
  11.  
  12. If I substitute:
  13.  
  14. String browse = System.getProperty("browse");
  15.  
  16. It does not work.
  17.  
  18. I use system.getProperty elsewhere in my code (not in an IF statement) and it works fine.  I have the property in my run configuration arguments tab.
  19.  
  20. In both cases   System.out.println(browse); returns FF .
  21.  
  22.  
  23. Scott
  24.    
  25.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement