Testscript not working in google chrome and IE10 browser

46 views
Skip to first unread message

Siva

unread,
Mar 18, 2015, 6:01:33 AM3/18/15
to seleniu...@googlegroups.com
Hi All,
 
Im trying to execute simple test case in firefox, chrome and IE 10 browser.
 
if i execute the same script in firefox, it is working fine. But im facing the problem only in google chrome and IE10 browser alone.
 
Currently im using the latest version of selenium client and server ( selenium-server-standalone-2.45.0.jar ).
 
Please find my code below.
 
Issue 1. If i use the below code
 
Input => setUp("https://www.gmail.com/", "*googlechrome C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe");
Output => It is launching one instance of chrome browser and the URL is below. ( It was suppose to open only www.gmail.com).
 
 
Issue 2 : If i use the below code for chrome

Input => setUp("https://www.gmail.com/", "*chrome C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe");
 
Output => It is launching one instance of chrome browser and the URL is below. ( It was suppose to open only www.gmail.com).

It is showing my local drive path
 
Issue 3. If i use the below code for IE10
 
Input => setUp("https://www.gmail.com/", "*iexplore C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe");
 
Output => It is launching one instance of IE browser and it is showing the home page. It is not loading the gmail page. Which it suppose to open.
 
Can any one help me in this issue, Or i need to install any other jar files or driver to handle the chrome and Ie10 browser.
 
Regards,
Siva

PeterJeffreyGale

unread,
Mar 18, 2015, 6:12:41 AM3/18/15
to seleniu...@googlegroups.com
The Chrome driver that you reference is only required for Chrome and not Firefox or IE, though I don't recognise what language you are using and it looks like you have some sort of grid running, I think. I'm not sure why you are doing that if you are just trying to run browsers locally.

Gmail seems to be redirecting your earlier session ... it does something similar for me if I open it manually.

Siva

unread,
Mar 18, 2015, 6:39:29 AM3/18/15
to seleniu...@googlegroups.com
Hi,
 
Im using java and selenium RC.
 
i want to run the test cases individually on chrome and IE10 browsers instead of firefox.
 
Regards,
Siva
 
 
 
 

PeterJeffreyGale

unread,
Mar 18, 2015, 6:44:01 AM3/18/15
to seleniu...@googlegroups.com
Use of Selenium RC is not recommended any more ... if you are just starting off you'd be better advised looking at webdriver.

As I suggested, your configurations for Firefox and IE look wrong to me, but I'm not familiar with RC so can't suggest what they should be.

PeterJeffreyGale

unread,
Mar 18, 2015, 6:44:04 AM3/18/15
to seleniu...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages