Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- When I use:
- String browse = "FF";
- The following code works:
- if (browse.equals("FF")) {
- driver = new RemoteWebDriver(
- new URL("http://localhost:4444/wd/hub"),
- DesiredCapabilities.firefox());
- }
- If I substitute:
- String browse = System.getProperty("browse");
- It does not work.
- 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.
- In both cases System.out.println(browse); returns FF .
- Scott
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement