Appreciate the help Jian. Will look into it .

I am using Firefox 3.0.13 Ubuntu 8.04 32 bit .  The same tests with
tellurium 0.6.0 .

My guess looking at the google search results is that there is some
expectation of http . My url is chrome:  which I guess is the root cause of
the problem

Regards
Hari

On Wed, Sep 23, 2009 at 7:20 PM, Jian Fang <[email protected]> wrote:

> What is your browser version? You don't have any problems for this same
> browser with 0.6.0?
>
> Will look at it later.
>
> In the meanwhile, please do a Google search for
>
> "selenium Component returned failure code: 0x80004005 (NS_ERROR_FAILURE)"
>
> to see if you could find something useful. I am way too busy recently.
>
> Thanks,
>
> Jian
>
>
> On Wed, Sep 23, 2009 at 9:44 AM, Harihara Vinayakaram <[email protected]>wrote:
>
>> Hi
>>    Thanks for the quick reply. I was able to resolve the problem of
>> 2browser windows opening by moving the openUrl to connectUrl
>>
>>    I moved the registerNameSpace command after the connectUrl . But I am
>> getting the same problem as before (i.e.) open command not found . This is
>> what I see in the selenium server logs
>>
>> 19:10:54.105 INFO - Command request:
>> open[chrome://crms/content/crms_search.xhtml/?path=/home/hari/RegressionTesting/Greencity/misc/users_data/,
>> ] on session 52ebc418f5c843d89a8a8b3be3044489
>> 19:10:54.118 INFO - Got result: ERROR: Command execution failure. Please
>> search the forum at http://clearspace.openqa.org for error details from
>> the log window.  The error message is: Component returned failure code:
>> 0x80004005 (NS_ERROR_FAILURE) [nsIDOMLocation.href] on session
>> 52ebc418f5c843d89a8a8b3be3044489
>>
>> Regards
>> Hari
>>
>>
>> On Wed, Sep 23, 2009 at 6:44 PM, Jian Fang <[email protected]>wrote:
>>
>>> I guess the problem is that you should open a connection first before you
>>> call registerNamespace(). In 0.6.0, we automatically start a new connection
>>> for you use the configuration from TelluriumConfig.groovy + settings from
>>> customConfig() method when the test starts. But this is not good if people
>>> want to use custom browser options to control each individual test. Thus, we
>>> remove this automated created connection in 0.7.0.
>>>
>>> Be aware that,
>>>
>>> openUrl() = connectSeleniumServer() + connectUrl()
>>>
>>> Thus, you only need to use openUrl() once and use connectUrl() for the
>>> subsequent tests if you like to reuse the same browser session. That is to
>>> say, openUrl() will open a new browser, but connectUrl() will not.
>>>
>>> Hope this can clarify some of the confusions.
>>>
>>> Thanks,
>>>
>>> Jian
>>>
>>>
>>> On Wed, Sep 23, 2009 at 8:55 AM, Harihara Vinayakaram 
>>> <[email protected]>wrote:
>>>
>>>> Hi
>>>>    I am still having problems moving from 0.6.0 to 0.7.0
>>>>
>>>>    I added the connectSeleniumServer() command in the initUi as Dominic
>>>> suggested. This took care of the Null Pointer exception.  But I am still
>>>> getting errors as detailed below :
>>>>
>>>>     My questions :
>>>>          I do not know why a second firefox is launched. (Not sure )
>>>>
>>>> The whole thing works perfectly for 0.6.0 . Will be good if somebody can
>>>> guide me .  I have copied the latest selenium-server.jar from core/lib and
>>>> the latest tellurium-0.7.0.jar from the latest checkout
>>>>
>>>> My class looks like this :
>>>> public class ChromeSearchTests01 extends TelluriumTestNGTestCase
>>>> implements ITest {
>>>>
>>>>     .....
>>>>
>>>>  @BeforeClass
>>>>   public void initUi() {
>>>>     connectSeleniumServer();
>>>>     loginUtils = new LoginUtils();
>>>>     loginUtils.defineUi();
>>>>     loggedInPageUtils = new LoggedInPageUtils();
>>>>     loggedInPageUtils.defineUi();
>>>>     loggedInPageUtils.useJavascriptXPathLibrary();
>>>>     addNewUserUtils = new AddNewUserUtils();
>>>>     addNewUserUtils.defineUi();
>>>>
>>>>     searchPageUtils = new SearchPageUtils();
>>>>     searchPageUtils.defineUi();
>>>>
>>>>     pageUploadUtils = new PageUploadUtils();
>>>>     pageUploadUtils.defineUi();
>>>>     //
>>>>     pregnancyUtils = new PregnancyUtils();
>>>>     pregnancyUtils.defineUi();
>>>>
>>>>     addNewUserUtils.registerNamespace("xforms", "
>>>> http://www.w3.org/2002/xforms";)
>>>>     addNewUserUtils.registerNamespace("html", "
>>>> http://www.w3.org/1999/xhtml";)
>>>>     loggedInPageUtils.registerNamespace("html", "
>>>> http://www.w3.org/1999/xhtml";)
>>>>     searchPageUtils.registerNamespace("html", "
>>>> http://www.w3.org/1999/xhtml";)
>>>>     pregnancyUtils.registerNamespace("xforms", "
>>>> http://www.w3.org/2002/xforms";)
>>>>
>>>>   }
>>>>    ....
>>>>    .....
>>>> @Test
>>>>  public void connect() {
>>>>     String host = testUserClass.gethost();
>>>>     openUrl(host);
>>>>   }
>>>> }
>>>>
>>>> The error message I get looks like this :
>>>>
>>>> com.thoughtworks.selenium.SeleniumException: ERROR: Command execution 
>>>> failure. Please search the forum at http://clearspace.openqa.org for error 
>>>> details from the log window.  The error message is: Component returned 
>>>> failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMLocation.href]
>>>>
>>>>
>>>>
>>>>
>>>>    at 
>>>> com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError(HttpCommandProcessor.java:97)
>>>>    at 
>>>> com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcessor.java:91)
>>>>    at 
>>>> com.thoughtworks.selenium.DefaultSelenium.open(DefaultSelenium.java:335)
>>>>
>>>>
>>>>
>>>>
>>>>    at com.thoughtworks.selenium.Selenium$open.call(Unknown Source)
>>>>    at 
>>>> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:43)
>>>>    at 
>>>> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
>>>>
>>>>
>>>>
>>>>
>>>>    at 
>>>> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)
>>>>    at 
>>>> org.tellurium.connector.SeleniumConnector.connectUrl(SeleniumConnector.groovy:47)
>>>>    at 
>>>> org.tellurium.test.java.BaseTelluriumJavaTestCase.openUrl(BaseTelluriumJavaTestCase.java:22)
>>>>
>>>>
>>>>
>>>>
>>>>    at 
>>>> org.tellurium.test.java.BaseTelluriumJavaTestCase$openUrl.callCurrent(Unknown
>>>>  Source)
>>>>    at 
>>>> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:47)
>>>>    at 
>>>> org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:142)
>>>>
>>>>
>>>>
>>>>
>>>>    at 
>>>> org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:150)
>>>>    at 
>>>> com.yostech.yoscare.test.ChromeSearchTests01.connect(ChromeSearchTests01.groovy:80)
>>>>
>>>>
>>>>
>>>> The commands for the Selenium Server looks like the following :
>>>> 18:10:20.938 INFO - Checking Resource aliases
>>>> 18:10:20.956 INFO - Checking Resource aliases
>>>> 18:10:20.987 INFO - Command request: getNewBrowserSession[*firefox
>>>> /opt/firefox/firefox-bin, http://localhost:8080, ] on session null
>>>> 18:10:20.990 INFO - creating new remote session
>>>> 18:10:21.140 INFO - Allocated session 272a0e75f20b4e3a8588f641da3c9bbc
>>>> for http://localhost:8080, launching...
>>>> 18:10:22.311 INFO - Preparing Firefox profile...
>>>> 18:10:26.214 INFO - Launching Firefox...
>>>> 18:10:29.688 INFO - Got result: OK,272a0e75f20b4e3a8588f641da3c9bbc on
>>>> session 272a0e75f20b4e3a8588f641da3c9bbc
>>>> 18:10:29.704 INFO - Command request: addLocationStrategy[jquery,
>>>>           return tellurium.locateElementByJQuerySelector(locator,
>>>> inDocument, inWindow);
>>>>       ] on session 272a0e75f20b4e3a8588f641da3c9bbc
>>>> 18:10:29.839 INFO - Got result: OK on session
>>>> 272a0e75f20b4e3a8588f641da3c9bbc
>>>> 18:10:29.840 INFO - Command request: addLocationStrategy[jquerycache,
>>>>           return
>>>> tellurium.locateElementByCacheAwareJQuerySelector(locator, inDocument,
>>>> inWindow);
>>>>       ] on session 272a0e75f20b4e3a8588f641da3c9bbc
>>>> 18:10:29.848 INFO - Got result: OK on session
>>>> 272a0e75f20b4e3a8588f641da3c9bbc
>>>> 18:10:30.266 INFO - Command request: useXpathLibrary[javascript-xpath, ]
>>>> on session 272a0e75f20b4e3a8588f641da3c9bbc
>>>> 18:10:30.275 INFO - Got result: OK on session
>>>> 272a0e75f20b4e3a8588f641da3c9bbc
>>>> 18:10:30.541 INFO - Command request: addNamespace[xforms,
>>>> http://www.w3.org/2002/xforms] on session
>>>> 272a0e75f20b4e3a8588f641da3c9bbc
>>>> 18:10:30.551 INFO - Got result: OK on session
>>>> 272a0e75f20b4e3a8588f641da3c9bbc
>>>> 18:10:30.551 INFO - Command request: addNamespace[html,
>>>> http://www.w3.org/1999/xhtml] on session
>>>> 272a0e75f20b4e3a8588f641da3c9bbc
>>>> 18:10:30.565 INFO - Got result: OK on session
>>>> 272a0e75f20b4e3a8588f641da3c9bbc
>>>> 18:10:30.566 INFO - Command request: addNamespace[html,
>>>> http://www.w3.org/1999/xhtml] on session
>>>> 272a0e75f20b4e3a8588f641da3c9bbc
>>>> 18:10:30.576 INFO - Got result: OK on session
>>>> 272a0e75f20b4e3a8588f641da3c9bbc
>>>> 18:10:30.578 INFO - Command request: addNamespace[html,
>>>> http://www.w3.org/1999/xhtml] on session
>>>> 272a0e75f20b4e3a8588f641da3c9bbc
>>>> 18:10:30.587 INFO - Got result: OK on session
>>>> 272a0e75f20b4e3a8588f641da3c9bbc
>>>> 18:10:30.588 INFO - Command request: addNamespace[xforms,
>>>> http://www.w3.org/2002/xforms] on session
>>>> 272a0e75f20b4e3a8588f641da3c9bbc
>>>> 18:10:30.602 INFO - Got result: OK on session
>>>> 272a0e75f20b4e3a8588f641da3c9bbc
>>>> 18:10:30.624 INFO - Command request: getNewBrowserSession[*firefox
>>>> /opt/firefox/firefox-bin, http://localhost:8080, ] on session null
>>>> 18:10:30.624 INFO - creating new remote session
>>>> 18:10:30.624 INFO - Allocated session 66c95faefc70425dafddcf588ac4e6f2
>>>> for http://localhost:8080, launching...
>>>> 18:10:31.697 INFO - Preparing Firefox profile...
>>>> 18:10:35.668 INFO - Launching Firefox...
>>>> 18:10:39.073 INFO - Got result: OK,66c95faefc70425dafddcf588ac4e6f2 on
>>>> session 66c95faefc70425dafddcf588ac4e6f2
>>>> 18:10:39.076 INFO - Command request: addLocationStrategy[jquery,
>>>>           return tellurium.locateElementByJQuerySelector(locator,
>>>> inDocument, inWindow);
>>>>       ] on session 66c95faefc70425dafddcf588ac4e6f2
>>>> 18:10:39.095 INFO - Got result: OK on session
>>>> 66c95faefc70425dafddcf588ac4e6f2
>>>> 18:10:39.096 INFO - Command request: addLocationStrategy[jquerycache,
>>>>           return
>>>> tellurium.locateElementByCacheAwareJQuerySelector(locator, inDocument,
>>>> inWindow);
>>>>       ] on session 66c95faefc70425dafddcf588ac4e6f2
>>>> 18:10:39.112 INFO - Got result: OK on session
>>>> 66c95faefc70425dafddcf588ac4e6f2
>>>> 18:10:39.115 INFO - Command request:
>>>> open[chrome://crms/content/crms_search.xhtml/?path=/home/hari/RegressionTesting/Greencity/misc/users_data/,
>>>> ] on session 66c95faefc70425dafddcf588ac4e6f2
>>>> 18:10:39.143 INFO - Got result: ERROR: Command execution failure. Please
>>>> search the forum at http://clearspace.openqa.org for error details from
>>>> the log window.  The error message is: Component returned failure code:
>>>> 0x80004005 (NS_ERROR_FAILURE) [nsIDOMLocation.href] on session
>>>> 66c95faefc70425dafddcf588ac4e6f2
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>
>>
>>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"tellurium-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/tellurium-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to