Hi Chi Mo,

Thomas is on vacation for the next two weeks. Hope you can wait for your
answer a bit. I send him a reminder to your post so he do not overlook
it. Maybe some other people on the list could help. My own experience
with the Simulator is quite nonexistent :)

Sebastian


Chi Mo schrieb:
> Hi Thomas,
> 
>       Recently I upgraded to Window Vista. In my old PC(Window XP), the test 
> script works fine in both IE7 and Firefox2. In the new PC(Window Vista), the 
> script is still work in Firefox 2. But here comes an error in IE7. It's a 
> quite simple script, something like:
> 
>       sel.qxClick("//*[text()=\"OK\"]")         # click OK button after 
> editing
> 
> It's an editor, after write something, I want to click the OK button. This 
> works no problem in Firefox2, but in IE7, I got:
> 
> Traceback (most recent call last):
>   File 
> "C:\trunk\abling\qa\abling\webtest\selenium\Python\AblWebClientBasicFuncTest.py",
>  line 418, in ?
>     testNewDiscussion(oAblingWebTestRunning)
>   File 
> "C:\trunk\abling\qa\abling\webtest\selenium\Python\AblWebClientBasicFuncTest.py",
>  line 87, in testNewDiscussion
>     "BeijingContent")
>   File "C:\trunk\abling\qa\abling\webtest\selenium\Python\AblingWebTest.py", 
> line 179, in NewDiscussion
>     sel.qxClick("//*[text()=\"OK\"]")         # click OK button after editing
>   File 
> "C:\SDC\ToolSource\tools_source\AblingClient\WebServer\Simulator\trunk\tool\selenium\client_driver\qxSelenium.py",
>  line 29, in qxClick
>     return self.do_command("qxClick", [locator,])
>   File 
> "C:\SDC\selenium-remote-control-1.0-beta-1\selenium-python-client-driver-1.0-beta-1\selenium.py",
>  line 202, in do_command
>     raise Exception, data
> Exception: ERROR: Selenium failure. Please report to the Selenium Users forum 
> at http://forums.openqa.org, with error details from the log window.  The 
> error message is:
> 
> 
> If I clcik 'Show Log', I can see :
> 
> info(1221103145448): Executing: |qxClick | //*[text()="OK"] |  |
> error(1221103151844): Unexpected Exception: 
> error(1221103151844): Exception details: name -> Error, number -> 
> -2147417851, description -> , message -> 
> info(1221103239625): Done appending missed logging messages
> error(1221103239625): Log window displayed.  Logging events will now be 
> recorded to this window.
> 
> And in selenium cmd, I got:
> 
> 11:19:05.401 INFO - Got result: OK on session 14f825df5dba4ed4a85c33c9d466f89d
> 11:19:05.401 INFO - Command request: qxClick[//*[text()="OK"], ] on session 
> 14f8
> 25df5dba4ed4a85c33c9d466f89d
> 11:19:11.859 INFO - Got result: ERROR: Selenium failure. Please report to the 
> Se
> lenium Users forum at http://forums.openqa.org, with error details from the 
> log
> window.  The error message is:  on session 14f825df5dba4ed4a85c33c9d466f89d
> 
> It's a little strange, since I've seen this kind of info before, but all with 
> a real 'error message', such as:
> 
> The error message is:  Permission denied 
> The error message is:  XPath error 
> 
> But there is nothing in this case.
> 
> Then I looked at selenium.py, class selenium, do_command function. I traced 
> it down and found, when error happens,
> 
> response.status is '200'
> response.reason is 'OK'
> 
> But the response.read() is 'ERROR: Selenium failure. Please report to the 
> Selenium Users
> forum at http://forums.openqa.org, with error details from the log window.  
> The error message is: '
> 
> I used qxClick earlier in the same script, which is ok. the response.read() 
> is 'OK'.
> 
> I wonder if you know this? There is another difference between my old and new 
> PC. The current IE7 is a Chinese version, the old one is an English version. 
> This might be a problem if I try to operate  some div(text) that are Chinese, 
> but shouldn't wrong here.
> 
> All right, thanks a lot.
>  
> Regards,
> Chi Mo
> 2008-09-11
> 
> 
>> Chi Mo wrote:
>>> Hi Thomas,
>>>
>>>   
>>>> would have guessed that the Selenium Core takes care of that... All I can
>>>> say at the moment is try to devise a locator that works in both browsers.
>>>>     
>>> I think I've got it now. There is a 'txt' near those toolbar, so I used a 
>>> group of 'div' to located it, it's something like:
>>>
>>> qxClick("//*[text()=\"txt\"]/parent::div/parent::div/parent::div/div[2]/div[8]/div")
>>>
>>> a litte ugly, but at least this works in both IE and FF :).
>>>
>>> On the other hand, I guess we might use 'alt' or 'title' if there are. 
>>>
>>> Our code is like 
>>>
>>> <img width="16" height="16" style="border: 0pt none ; vertical-align: top;" 
>>> alt="" title="" src="copy.gif"/>
>>>
>>> if we can give it a 'alt' or 'title', we might do this easier!
>>>   
>> 'id' and 'name' attributes would be even better, since you then can get
>> away without an Xpath locator at all.
>>
>> T.
>>
>>
>> -------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
>> Build the coolest Linux based applications with Moblin SDK & win great prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> _______________________________________________
>> qooxdoo-devel mailing list
>> qooxdoo-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>
> 
>                       
> 
> 
> 
> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> qooxdoo-devel mailing list
> qooxdoo-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to