korimo / firewatir

Automatically exported from code.google.com/p/firewatir
0 stars 0 forks source link

An "UnknownObjectException" if the trailing white space is omiited from "what" section #47

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. ff.link(:text, "Sign Out").click
2. The value of ":text" is "Sign Out " with a trailing white space.
3. This works fine in IE how ever throws an error in firefox

What is the expected output? What do you see instead?
It should click on the named link
however it throws the following error.
c:/ruby/lib/ruby/gems/1.8/gems/firewatir-
1.1/./MozillaBaseElement.rb:812:in `assert_exists': Unable to locate 
object, using text and Sign Out 
(FireWatir::Exception::UnknownObjectException)
    from c:/ruby/lib/ruby/gems/1.8/gems/firewatir-
1.1/./MozillaBaseElement.rb:884:in `innerText'

What version of the product are you using? On what operating system?
FireWatir 1.1, FireFox 2.0.0.7
Windows XP-SP2

Please provide any additional information below.

Original issue reported on code.google.com by chanti.b...@gmail.com on 18 Oct 2007 at 3:26

GoogleCodeExporter commented 9 years ago
Do you think that should work?
ff.link(:text, "Sign Out") and ff.link(:text, "Sign Out ") are two different 
things
as per me. You are using exact comparison for finding out the link. 

Original comment by ang...@gmail.com on 23 Oct 2007 at 6:07

GoogleCodeExporter commented 9 years ago
I agree with what you have to say. However Internet explorer (I mean Watir 1.5) 
does 
work with both the notations. Hence the scripts that are developed to run on 
both IE 
and Firefox tend to fail with FireFox.

Wondering what could be the solution to this compatibility issue.

-Thanks
Satish

Original comment by chanti.b...@gmail.com on 23 Oct 2007 at 6:15

GoogleCodeExporter commented 9 years ago
You are right, this could be a simple fix. But still I am confused :).

Original comment by ang...@gmail.com on 23 Oct 2007 at 6:31

GoogleCodeExporter commented 9 years ago
I think it works fine. Code already takes care of striping trailing and leading 
white
spaces from link text before comparing it. Can you just send me the HTML of the 
link.

Original comment by ang...@gmail.com on 23 Oct 2007 at 6:38

GoogleCodeExporter commented 9 years ago
Sure I will let me create a test account so that u could login to the site. I 
will 
send you the details once I am done with it.

-Thanks
Satish

Original comment by chanti.b...@gmail.com on 23 Oct 2007 at 7:00

GoogleCodeExporter commented 9 years ago
Please visit the following site.

www.webmail.aol.in
and login using "kiranyajamanyam" as the Login ID and "chinnu" as the password.

Once you are in please locate a link named "Sign Out". For window details refer 
to 
the screen shot in the attachment.

Original comment by chanti.b...@gmail.com on 23 Oct 2007 at 7:18

Attachments:

GoogleCodeExporter commented 9 years ago
Hi,

Could you let me know what necesary changes should be done and in which file. 
This 
issue is blocking porting of the testcases. If you could let me know the 
changes, 
that would be of great help to me.

Original comment by chanti.b...@gmail.com on 13 Nov 2007 at 3:45

GoogleCodeExporter commented 9 years ago
I think the site uses AJAX. We are currently working on how to support AJAX.

Original comment by ang...@gmail.com on 14 Nov 2007 at 3:46

GoogleCodeExporter commented 9 years ago

Original comment by ang...@gmail.com on 8 Apr 2008 at 7:46

GoogleCodeExporter commented 9 years ago
moved to http://jira.openqa.org/browse/WTR-385

Original comment by zeljko.f...@gmail.com on 4 Nov 2009 at 10:25

GoogleCodeExporter commented 9 years ago
Ticket moved to http://jira.openqa.org/browse/WTR. Please see comments for
the exact URL.

Original comment by zeljko.f...@gmail.com on 20 Nov 2009 at 10:39