Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
0 answers
28 views

Can I call System.setProperty in Selenium Java then read it in the main app?

I need to set a flag in a java web app if it's running under a Selenium Java test. The Selenium test code starts with: System.setProperty("testRunning", "true"); Then selenium ...
timmacp's user avatar
  • 193
1 vote
1 answer
830 views

Exception in thread "main" java.lang.Error: Unresolved compilation problems: Syntax error on token "Invalid Character" executing Selenium Java program

Code trials: package split; public class locators { public static void main(String[] args) { // TODO Auto-generated method stub System.setProperty(“webdriver.chrome.driver”, “C/...
Sundar Jakob's user avatar
0 votes
0 answers
181 views

how to Use system properties to pass parameters to the runner/maven build

I want to run my test in three different preset resolution: 768x1024, 360x740, 1920x1024 using the existing framework. And I have to use system properties to pass parameters to the runner/maven build. ...
bouka boukandi's user avatar
2 votes
1 answer
757 views

How to initiate multiple versions of Geckodriver through System.setProperty()

I don't know if I'm overseeing something, but is it possible to use multiple geckodriver versions in the same JVM? The problem is with System.setProperty("webdriver.gecko.driver", "path of the ...
Christof's user avatar
58 votes
5 answers
239k views

Driver executable must be set by the webdriver.ie.driver system property

I am using Selenium for automating the tests. My application exclusively uses IE, it will not work on other Browsers. Code: import org.openqa.selenium.ie.InternetExplorerDriver; import org.openqa....
Vikram's user avatar
  • 7,507