from properties file below is the code
public class TestBase {
// initalizing the property file reading
public static Properties config=null;
public static Properties or=null;
public static WebDriver dr=null;
public static EventFiringWebDriver driver=null;
public static boolean isLoggedIn=false;
public static StringBuffer verificationErrors = new StringBuffer();
public void initialize() throws IOException, Exception{
if(driver == null){
// config property file
config= new Properties();
FileInputStream fn =new
FileInputStream(System.getProperty("user.dir")+"//src//config/config.properties");
config.load(fn);
// OR Properties
or= new Properties();
fn =new
FileInputStream(System.getProperty("user.dir")+"//src//config/or.properties");
or.load(fn);
// Initalize the webdriver and EventFiringWebDriver
if(config.getProperty("browser").equals("Firefox")){
dr = new FirefoxDriver();
}else if(config.getProperty("browser").equals("IE")){
dr = new InternetExplorerDriver();
}else if(config.getProperty("browser").equals("Chrome")){
System.setProperty("webdriver.chrome.driver",
"U:\\eclipse\\chromedriver\\chromedriver.exe");
dr = new ChromeDriver();
}
driver = new EventFiringWebDriver(dr);
driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
driver.manage().timeouts().pageLoadTimeout(20, TimeUnit.SECONDS);
driver.manage().timeouts().setScriptTimeout(20, TimeUnit.SECONDS);
}
}
}
when I enable FF IE it works fine but for chrome the browser opens and it
fails to call the url of the app
Started ChromeDriver
port=7033
version=20.0.1133.0
log=U:\eclipse\Orion_Workspace\Bellatrix_Functional_Test_Junit\chromedriver.log
log4j:WARN No appenders could be found for logger
(org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager).
log4j:WARN Please initialize the log4j system properly.
.\test\automation\proxy_launcher.cc(108): error: Value of: app_launched
Actual: 1
Expected: AUTOMATION_SUCCESS
Which is: 0
Error while awaiting automation ping from browser process
.\test\automation\proxy_launcher.cc(298): error: Value of: browser.get()
Actual: false
Expected: true
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to selenium-users@googlegroups.com.
To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/6F7TvT3TaMgJ.
For more options, visit https://groups.google.com/groups/opt_out.