FireFox is not opening , and having some issue in RC

364 views
Skip to first unread message

Sri

unread,
Apr 6, 2011, 3:28:13 PM4/6/11
to seleniu...@googlegroups.com
Hi Gurus, 

I am using my script using selenium RC. Fire Fox is not opening and but if I open Firefox and run my script normally without RC. it is working fine. Please suggest me. 
But RC is opening IE, I have different problem in IE7. 


C:\Selenium>java -jar "C:\Selenium\selenium-remote-control-1.0\selenium-server-1
.0\selenium-server.jar" -htmlSuite "*firefox"  "https://cccccccxxx.c
om/xxx/Login.htm" "C:\Selenium\testsuite.html" "C:\Selenium\results.html"
14:31:55.581 INFO - Java: Sun Microsystems Inc. 19.1-b02
14:31:55.581 INFO - OS: Windows XP 5.1 x86
14:31:55.596 INFO - v1.0 [2677], with Core v@VERSION@ [@REVISION@]
14:31:55.674 INFO - Version Jetty/5.1.x
14:31:55.674 INFO - Started HttpContext[/selenium-server/driver,/selenium-server
/driver]
14:31:55.674 INFO - Started HttpContext[/selenium-server,/selenium-server]
14:31:55.674 INFO - Started HttpContext[/,/]
14:31:55.689 INFO - Started SocketListener on 0.0.0.0:4444
14:31:55.689 INFO - Started org.mortbay.jetty.Server@14693c7
14:31:55.766 WARN - It looks like your baseUrl (https://xxv.xxxca3.xxxank.c
om/xxx/Login.htm) is pointing to a file, not a directory (it doesn't end with a
/).  We're going to have to strip off the last part of the pathname.
14:31:55.828 INFO - Preparing Firefox profile...
HTML suite exception seen:
java.lang.RuntimeException: Firefox refused shutdown while preparing a profile
        at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.wai
tForFullProfileToBeCreated(FirefoxChromeLauncher.java:311)
        at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.pop
ulateCustomProfileDirectory(FirefoxChromeLauncher.java:106)
        at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.lau
nch(FirefoxChromeLauncher.java:83)
        at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.lau
nchHTMLSuite(FirefoxChromeLauncher.java:345)
        at org.openqa.selenium.server.browserlaunchers.FirefoxLauncher.launchHTM
LSuite(FirefoxLauncher.java:94)
        at org.openqa.selenium.server.htmlrunner.HTMLLauncher.runHTMLSuite(HTMLL
auncher.java:129)
        at org.openqa.selenium.server.htmlrunner.HTMLLauncher.runHTMLSuite(HTMLL
auncher.java:174)
        at org.openqa.selenium.server.SeleniumServer.runHtmlSuite(SeleniumServer
.java:524)
        at org.openqa.selenium.server.SeleniumServer.boot(SeleniumServer.java:23
2)
        at org.openqa.selenium.server.SeleniumServer.main(SeleniumServer.java:18
8)
Caused by: org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher$Fil
eLockRemainedException: Lock file still present! c:\DOCUME~1\xx28039\LOCALS~1\Te
mp\customProfileDir315689\parent.lock
        at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.wai
tForFileLockToGoAway(FirefoxChromeLauncher.java:269)
        at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.wai
tForFullProfileToBeCreated(FirefoxChromeLauncher.java:309)
        ... 9 more
14:32:17.092 INFO - Shutting down...

Tarun K

unread,
Apr 7, 2011, 2:45:57 PM4/7/11
to Selenium Users
Did you notice this line in your message -

"Firefox refused shutdown while preparing a profile"

Close any opened firefox instance and then try.

##############################################################################################################################
On a different note, did you see proposal of new selenium site on area
51 - http://area51.stackexchange.com/proposals/4693/selenium.
This proposal is backed by SeleniumHQ and we need more users to commit
to it before it is available for public use.
You can log in using your Yahoo!/Google id and click on Commit button
on area51 site

I put across steps to commit on my blog here, follow it if you face
any difficulty - http://seleniumsoftwaretesting.blogspot.com/2011/03/did-you-support-selenium-question-site.html
##############################################################################################################################

Sri

unread,
Apr 7, 2011, 3:56:53 PM4/7/11
to seleniu...@googlegroups.com

I have done the following.. still no use..  Please please help me.. If this is working means.. I can do the rest.. 

Details: 

selenium-remote-control-1.0

Windows XP

FF : 3.6.16

L:\>java -version

java version "1.6.0_24"

Java(TM) SE Runtime Environment (build 1.6.0_24-b07)

 

When starting Firefox I get: java java.lang.RuntimeException: Firefox refused shutdown while preparing a profile”

Here is my log on this error: … java Caused by: org.seleniumhq.selenium.server.browserlaunchers.FirefoxChromeLauncher$FileLockRemainedException: Lock file still present! C:\DOKUME1\Semadou\LOKALE1\Temp\customProfileDir9d4a3879bb7d4ca5b75dbbb488ec30b1\parent.lock

Sometimes Selenium Remote Control does not stop Firefox properly on Windows and things get very messy (leaving lock files behind). This does happen when you Ctrl-C while running the test suite for instance.

If you encounter this problem, I would advise you to:

·         Kill all running Firefox instances and make sure that there is no Firefox process in the task manager (or even better reboot)

·         Delete all the directories: C:\DOCUME1\<your login>\LOCALS1\Temp\customProfileDir*

·         While you are at it cleanup C:\DOCUME1\<your login>\LOCALS1\Temp as much as possible

·         Run your tests or the demo again

 


JamesB

unread,
Apr 7, 2011, 5:38:51 PM4/7/11
to Selenium Users
Have you tried the advice on the error you got?

"Sometimes Selenium Remote Control does not stop Firefox properly on
Windows
and things get very messy (leaving lock files behind). This does
happen when
you Ctrl-C while running the test suite for instance.

If you encounter this problem, I would advise you to:

· Kill all running Firefox instances and make sure that there
is no
Firefox process in the task manager (or even better reboot)

· Delete all the directories: C:\DOCUME1\<your
login>\LOCALS1\Temp\customProfileDir*

· While you are at it cleanup C:\DOCUME1\<your login>
\LOCALS1\Temp
as much as possible

· Run your tests or the demo again "

On Apr 7, 8:56 pm, Sri <srikanthpun...@gmail.com> wrote:
> *I have done the following.. still no use..  Please please help me.. If this
> is working means.. I can do the rest.. *
>
> *Details: *
>
> *selenium-remote-control-1.0*
>
> *Windows XP*
>
> *FF : 3.6.16*
>
> L:\>java -version
>
> java version "1.6.0_24"
>
> Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
>
> *When starting Firefox I get: java java.lang.RuntimeException: Firefox
> refused shutdown while preparing a profile”*
>
> *Here is my log on this error: … java Caused by:
> org.seleniumhq.selenium.server.browserlaunchers.FirefoxChromeLauncher$FileLockRemainedException:
> Lock file still present!
> C:\DOKUME1\Semadou\LOKALE1\Temp\customProfileDir9d4a3879bb7d4ca5b75dbbb488ec30b1\parent.lock
> *

raj

unread,
Apr 8, 2011, 11:28:11 AM4/8/11
to seleniu...@googlegroups.com
Use the selenium-remote-control-1.0.3 version of  selenium RC, That will resolve the issue ,You can find the latest version at

 http://selenium.googlecode.com/files/selenium-remote-control-1.0.3.zip,

Thanks
Rajendra


--
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.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/selenium-users?hl=en.


Sri

unread,
Apr 8, 2011, 3:28:04 PM4/8/11
to seleniu...@googlegroups.com
Excellent Suggestion Rajendra. Now I don't have problem with FireFox. Now I am running it says that Element is not Found while running with Selenium - RC, please see the screenshot. 

This is my code: 

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="https://webdev.tschca3.pncbank.com/" />
<title>login</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">login</td></tr>
</thead><tbody>
<tr>
<td>waitForTextPresent</td>
<td>Company ID: </td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>companyId</td>
<td>hcaadmin</td>
</tr>
<tr>
<td>type</td>
<td>operatorId</td>
<td>admin1</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>ssoLogin</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>

ScreenShotFailed.JPG

raj

unread,
Apr 10, 2011, 11:31:59 PM4/10/11
to seleniu...@googlegroups.com
Can you have a try by replacing  waitForTextPresent with waitForElementPresent, i have highlighted the line below with Red
 
 
 
Thanks
Rajendra


Sri

unread,
Apr 11, 2011, 1:53:45 PM4/11/11
to seleniu...@googlegroups.com
Everything is working fine, if I open FireFox and open Selenium from Tools and load script , and if I run.. 

If I run from Selenium RC, it is not identifying and  finally says element not found. 

I am really getting mad why is this happening like this  in selenium-remote-control-1.0.3.

This is same for IE7 also. 

Thanks,
Srikanth P



raj

unread,
Apr 12, 2011, 1:12:31 AM4/12/11
to seleniu...@googlegroups.com
Can you Paste your selenium RC code,if it is possible
 
 
Thanks


 

Sri

unread,
Apr 13, 2011, 2:23:01 PM4/13/11
to seleniu...@googlegroups.com
Hi Rajendra, 

Script is started working for FIREFOX 3.6.16 after adding the highlighted code ( In Blue )  to my original script. But it is not working for IE 7 and says element not found. I am unable to capture what was going when I run *.cmd file ( It has the following lines ) '

java -jar C:\Selenium\selenium-remote-control-1.0.3\selenium-server-1.0.3\selenium-server.jar -htmlsuite *iexplore       ( I tried with   iehta ) https://zzzzzz.eeeee3.xxxxxx.com/aaa/Login.htm C:\Selenium\testsuite.html C:\Selenium\results.html



Our company websites doesn't support Firefix, Somehow If I can run this script using selenium-RC for IE7, that will help me a lot. At least even if we don't write any script writing in selenium and if we create couple of test case by recording and if we run them that it would help us. 

When I am running in Firefox , I am getting Add security, I want to create Firefox profile and run the script, Hope I don't get this problem. 

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="https://zzzzzz.eeeee3.xxxxxx.com/aaa/Login.htm" />
<title>login</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">login</td></tr>
</thead><tbody>
<tr>
<td>open</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>companyId</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>companyId</td>
<td>haadmin</td>
</tr>
<tr>
<td>type</td>
<td>operatorId</td>
<td>admin1</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>ssoLogin</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>

Please suggest me how can I run it for IE7. 

Thanks,
Srikanth P

Add Security.JPG

Sri

unread,
Apr 13, 2011, 3:27:55 PM4/13/11
to seleniu...@googlegroups.com
I just updated my *.cmd file. 

java -jar C:\Selenium\selenium-remote-control-1.0.3\selenium-server-1.0.3\selenium-server.jar -htmlsuite *iexploreproxy https://xxxxx.yyyyy3.eeeee.com/ccc/Login.htm C:\Selenium\testsuite.html C:\Selenium\results.html

Now IE is opening and getting Access denied. 

I am trying to follow the below link for success




raj

unread,
Apr 13, 2011, 11:10:33 PM4/13/11
to seleniu...@googlegroups.com
It looks like good information.As mentioned did you tried by deleting cookies ans temp file




Srikanth Punuru

unread,
Apr 13, 2011, 11:54:50 PM4/13/11
to seleniu...@googlegroups.com, seleniu...@googlegroups.com
Yes, I did it.. Still I have some issue and getting certificate issue. I will remove certificate option and check what will happen. This is great experience. If you know anything please help me. 
There should be someone who faced this problem.

Srikanth P, CAPM 
Sent from my iPad 2
Reply all
Reply to author
Forward
0 new messages