I have setup a base class with initializing web driver,browsers and URL
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.

Search Discussions

  • Anji prassana at Aug 9, 2012 at 4:54 am
    Where you are calling driver.get("<yourappurl>") function? if you are
    calling this in "EventFiringWebDriver" class
    , then share this class code as well.
    On Wed, Aug 8, 2012 at 7:29 PM, vamshi wrote:

    I have setup a base class with initializing web driver,browsers and URL
    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.



    --
    Thanks&Regards
    Anjaneyulu P
    "The way you see the things is the way to think and is the way you react
    upon!!"

    --
    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.
    For more options, visit https://groups.google.com/groups/opt_out.
  • Krishnan Mahadevan at Aug 9, 2012 at 5:36 am
    Anji,

    EvenFiringWebDriver is a "Selenium2" class and NOT a class written by
    vamshi.

    This class is used to when you need to listen to events that are generated
    by WebDriver and do something before and after those events are triggered.



    Thanks & Regards
    Krishnan Mahadevan

    "All the desirable things in life are either illegal, expensive, fattening
    or in love with someone else!"


    On Thu, Aug 9, 2012 at 10:24 AM, anji prassana wrote:

    Where you are calling driver.get("<yourappurl>") function? if you are
    calling this in "EventFiringWebDriver" class
    , then share this class code as well.
    On Wed, Aug 8, 2012 at 7:29 PM, vamshi wrote:

    I have setup a base class with initializing web driver,browsers and URL
    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.



    --
    Thanks&Regards
    Anjaneyulu P
    "The way you see the things is the way to think and is the way you react
    upon!!"

    --
    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.
    For more options, visit https://groups.google.com/groups/opt_out.

    --
    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.
    For more options, visit https://groups.google.com/groups/opt_out.
  • Anji prassana at Aug 9, 2012 at 7:24 am
    oh!! Thank you for enlightining me. I have to look into this class which
    seems to be interesting.
    Anyhow, in vamshi's script i couldn't see the call to the function
    driver.get("...") to open an URL.
    On Thu, Aug 9, 2012 at 10:59 AM, Krishnan Mahadevan wrote:

    Anji,

    EvenFiringWebDriver is a "Selenium2" class and NOT a class written by
    vamshi.

    This class is used to when you need to listen to events that are generated
    by WebDriver and do something before and after those events are triggered.



    Thanks & Regards
    Krishnan Mahadevan

    "All the desirable things in life are either illegal, expensive, fattening
    or in love with someone else!"



    On Thu, Aug 9, 2012 at 10:24 AM, anji prassana wrote:

    Where you are calling driver.get("<yourappurl>") function? if you are
    calling this in "EventFiringWebDriver" class
    , then share this class code as well.
    On Wed, Aug 8, 2012 at 7:29 PM, vamshi wrote:

    I have setup a base class with initializing web driver,browsers and URL
    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.



    --
    Thanks&Regards
    Anjaneyulu P
    "The way you see the things is the way to think and is the way you react
    upon!!"

    --
    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.
    For more options, visit https://groups.google.com/groups/opt_out.

    --
    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.
    For more options, visit https://groups.google.com/groups/opt_out.



    --
    Thanks&Regards
    Anjaneyulu P
    "The way you see the things is the way to think and is the way you react
    upon!!"

    --
    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.
    For more options, visit https://groups.google.com/groups/opt_out.
  • Vamshi at Aug 9, 2012 at 3:30 pm
    Hi Guys thats in my test classes which is under before method
    eg:
    setup()
    {
    inistilize():
    driver.get(config.getProperty("siteurl");
    }
    //siteurl is in config.properties

    I tried with updating my chromedriver repository with new version and old
    still the same

    any ideas now bear in mind this code works for IE,FF
    On Thursday, 9 August 2012 08:24:04 UTC+1, anji wrote:

    oh!! Thank you for enlightining me. I have to look into this class which
    seems to be interesting.
    Anyhow, in vamshi's script i couldn't see the call to the function
    driver.get("...") to open an URL.

    On Thu, Aug 9, 2012 at 10:59 AM, Krishnan Mahadevan <
    krishnan.ma...@gmail.com <javascript:>> wrote:
    Anji,

    EvenFiringWebDriver is a "Selenium2" class and NOT a class written by
    vamshi.

    This class is used to when you need to listen to events that are
    generated by WebDriver and do something before and after those events are
    triggered.



    Thanks & Regards
    Krishnan Mahadevan

    "All the desirable things in life are either illegal, expensive,
    fattening or in love with someone else!"




    On Thu, Aug 9, 2012 at 10:24 AM, anji prassana <anji...@gmail.com<javascript:>
    wrote:
    Where you are calling driver.get("<yourappurl>") function? if you are
    calling this in "EventFiringWebDriver" class
    , then share this class code as well.

    On Wed, Aug 8, 2012 at 7:29 PM, vamshi <vamshi...@gmail.com<javascript:>
    wrote:
    I have setup a base class with initializing web driver,browsers and URL
    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 seleniu...@googlegroups.com<javascript:>
    .
    To unsubscribe from this group, send email to
    selenium-user...@googlegroups.com <javascript:>.
    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.



    --
    Thanks&Regards
    Anjaneyulu P
    "The way you see the things is the way to think and is the way you react
    upon!!"

    --
    You received this message because you are subscribed to the Google
    Groups "Selenium Users" group.
    To post to this group, send email to seleniu...@googlegroups.com<javascript:>
    .
    To unsubscribe from this group, send email to
    selenium-user...@googlegroups.com <javascript:>.
    For more options, visit https://groups.google.com/groups/opt_out.

    --
    You received this message because you are subscribed to the Google Groups
    "Selenium Users" group.
    To post to this group, send email to seleniu...@googlegroups.com<javascript:>
    .
    To unsubscribe from this group, send email to
    selenium-user...@googlegroups.com <javascript:>.
    For more options, visit https://groups.google.com/groups/opt_out.



    --
    Thanks&Regards
    Anjaneyulu P
    "The way you see the things is the way to think and is the way you react
    upon!!"
    --
    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/-/l5gDRzh3Q94J.
    For more options, visit https://groups.google.com/groups/opt_out.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupselenium-users @
categoriesselenium
postedAug 8, '12 at 2:13p
activeAug 9, '12 at 3:30p
posts5
users3
websiteseleniumhq.org

People

Translate

site design / logo © 2022 Grokbase