[Webinar] Streamline your web hosting managementRegister Today

x
?
Solved

error running selenium testsuite on different brower (

Posted on 2011-05-10
3
Medium Priority
?
380 Views
Last Modified: 2013-11-24
Hi,

I generate the testcase and testsuite from Selenium IDE.

Someone told me that i can use command line (-htmlsuite) to run that against different browser:
http://www.experts-exchange.com/Programming/Languages/Java/J2ME/Q_27025607.html
http://www.theautomatedtester.co.uk/tutorials/selenium/selenium_rc_setup.htm

I tried to use this command line to run on IE, but it has some javascript error? (see screenshot)
C:\selenium-remote-control-1.0-SNAPSHOT\selenium-server-1.0-SNAPSHOT>java -jar s
elenium-server.jar -htmlsuite "*iexplore" "http://www.google.com" "case1suite.htm
l" "result.html"

More important question: i tried to use this command to run on firefox or chrome, but it said it cannot find the firefox, and return error on server, why? (see screenshot)

I attached all screenshot and testsuite to zip file, please advise!

Please advise,
Tommy

htmlsuite.zip
0
Comment
Question by:hongclub
  • 2
3 Comments
 
LVL 2

Expert Comment

by:mam-p
ID: 35732235
I just dealt with your second problem yesterday.  You need to set the PATH variable on your computer to include the complete path (dirs only) down through the one that contains the executable for Firefox (it was IE in my case). There are lots of articles on the web regarding how to update this variable--just be sure to find one for the version of Windows you're running.

Re: your first problem. I'd take it at face value, and enable pop-ups.

--mam-p
http://maryannmp.wordpress.com
0
 

Author Comment

by:hongclub
ID: 35732726
For ie, i disable the popup blocker... then it have another error on running the script, i am trying to find the solution on the web, just want to see if u have any suggestion, thanks!

tommy
another-ie-error.jpg
0
 
LVL 2

Accepted Solution

by:
mam-p earned 2000 total points
ID: 35732827

Does the testsuite/testcase now run okay on Firefox?

Are you sure you haven't updated the code of the testcase since you first attached it? I'm pretty sure that "rows" is coming from either your testcase OR a JS extension. You didn't mention the latter, and there's clearly no "rows" in your original testcase. So, I think we need an update here....

--mam-p
http://maryannmp.wordpress.com
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
Suggested Courses
Course of the Month10 days, 9 hours left to enroll

612 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question