List Info

Thread: frame.contains_text missing with gem build 1081?




frame.contains_text missing with gem build 1081?
user name
2006-09-19 18:34:47

Hi folks.

 

Environment:
Windoze XP pro
Ruby 1.8.5 – One click installer.
Watir 1.5.1.1081 – gem install

 

I was looking at a page that contains frames, and I had some trouble using the following command under irb:

 

ie.frame("top").contains_text("there")  -> undef̵7;d method “contains_text”

 

Then issuing

 

ie.frame(“top”).public_methods

 

It appears that contains_text is no longer available as a public method to a frame.

 

I’m going to see if I can come up with a different way to verify my results page, but I thought that someone might have some insight on this one.

 

Thanks

-Alan

 

 

example HTML to create the frameset:

 

Source of frameset

<html&gt;

<frameset rows=";50%,*"; cols=&quot;50%,*&quot;>

<frame name=";top" src="top.html&quot;>

<frame name=";bottom&quot; src=&quot;bottom.html">;

</frameset>

</html&gt;

 

Source of a frame content file

<html&gt;

Hello there

</html&gt;

 


Alan Ark | Lead QA Engineer&nbsp;| Complí compli.com">arkiecompli.com | office: 503.294.2020 | fax: 503.294.1200 | www.compli.com

 

frame.contains_text missing with gem build 1081?
user name
2006-09-20 03:26:17
Please log this as a regression bug in Jira.

Workaround is
ie.frame("top").text.include?
"there"

Bret

Alan Ark wrote:
>
> Hi folks.
>
> Environment:
> Windoze XP pro
> Ruby 1.8.5 – One click installer.
> Watir 1.5.1.1081 – gem install
>
> I was looking at a page that contains frames, and I had
some trouble 
> using the following command under irb:
>
>
ie.frame("top").contains_text("there"
;) -> undef’d method “contains_text”
>
> Then issuing
>
> ie.frame(“top”).public_methods
>
> It appears that contains_text is no longer available as
a public 
> method to a frame.
>
> I’m going to see if I can come up with a different way
to verify my 
> results page, but I thought that someone might have
some insight on 
> this one.
>
> Thanks
>
> -Alan
>
> example HTML to create the frameset:
>
> Source of frameset
>
> <html>
>
> <frameset rows="50%,*"
cols="50%,*">
>
> <frame name="top"
src="top.html">
>
> <frame name="bottom"
src="bottom.html">
>
> </frameset>
>
> </html>
>
> Source of a frame content file
>
> <html>
>
> Hello there
>
> </html>
>
>
------------------------------------------------------------
------------
>
> *Alan Ark* *|* **Lead QA Engineer ****|** **Complí**
**| 
> ****arkiecompli.com <mailto:arkiecompli.com> ****|** **office* 
> 503.294.2020 *|* *fax
503.294.1200 **|** www.compli.com 
> <http://www.compli.com/>

>
>
> --
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.405 / Virus Database: 268.12.5/450 -
Release Date: 9/18/2006
>
>
------------------------------------------------------------
------------
>
> _______________________________________________
> Wtr-general mailing list
> Wtr-generalrubyforge.org
> htt
p://rubyforge.org/mailman/listinfo/wtr-general

_______________________________________________
Wtr-general mailing list
Wtr-generalrubyforge.org
htt
p://rubyforge.org/mailman/listinfo/wtr-general
frame.contains_text missing with gem build 1081?
user name
2006-09-20 14:45:55
Hey Bret.

I've logged the issue in Jira.  Thanks for confirming that
this was indeed a problem.  Also thanks for the workaround. 
I was using html.include?  I like using text better.  After
thinking about it, I'm disappointed that I wasn't thinking
about using "text" to workaround the
"contains_text" issue.  LOL

Regards
-Alan


-----Original Message-----
From: wtr-general-bouncesrubyforge.org
[mailto:wtr-general-bouncesrubyforge.org] On Behalf Of
Bret Pettichord
Sent: Tuesday, September 19, 2006 8:26 PM
To: wtr-generalrubyforge.org
Subject: Re: [Wtr-general] frame.contains_text missing with
gem build 1081?

Please log this as a regression bug in Jira.

Workaround is
ie.frame("top").text.include?
"there"

Bret

Alan Ark wrote:
>
> Hi folks.
>
> Environment:
> Windoze XP pro
> Ruby 1.8.5 - One click installer.
> Watir 1.5.1.1081 - gem install
>
> I was looking at a page that contains frames, and I had
some trouble 
> using the following command under irb:
>
>
ie.frame("top").contains_text("there"
;) -> undef'd method "contains_text"
>
> Then issuing
>
> ie.frame("top").public_methods
>
> It appears that contains_text is no longer available as
a public 
> method to a frame.
>
> I'm going to see if I can come up with a different way
to verify my 
> results page, but I thought that someone might have
some insight on 
> this one.
>
> Thanks
>
> -Alan
>
> example HTML to create the frameset:
>
> Source of frameset
>
> <html>
>
> <frameset rows="50%,*"
cols="50%,*">
>
> <frame name="top"
src="top.html">
>
> <frame name="bottom"
src="bottom.html">
>
> </frameset>
>
> </html>
>
> Source of a frame content file
>
> <html>
>
> Hello there
>
> </html>
>
>
------------------------------------------------------------
------------
>
> *Alan Ark* *|* **Lead QA Engineer ****|** **Complí**
**| 
> ****arkiecompli.com <mailto:arkiecompli.com> ****|** **office* 
> 503.294.2020 *|* *fax
503.294.1200 **|** www.compli.com 
> <http://www.compli.com/>

>
>
> --
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.405 / Virus Database: 268.12.5/450 -
Release Date: 9/18/2006
>
>
------------------------------------------------------------
------------
>
> _______________________________________________
> Wtr-general mailing list
> Wtr-generalrubyforge.org
> htt
p://rubyforge.org/mailman/listinfo/wtr-general

_______________________________________________
Wtr-general mailing list
Wtr-generalrubyforge.org
htt
p://rubyforge.org/mailman/listinfo/wtr-general

-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.12.5/450 - Release
Date: 9/18/2006
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.12.5/451 - Release
Date: 9/19/2006
 
_______________________________________________
Wtr-general mailing list
Wtr-generalrubyforge.org
htt
p://rubyforge.org/mailman/listinfo/wtr-general
frame.contains_text missing with gem build 1081?
user name
2006-09-20 17:26:36
Alan Ark wrote:
> I've logged the issue in Jira.  Thanks for confirming
that this was indeed a problem.  Also thanks for the
workaround.  I was using html.include?  I like using text
better.  After thinking about it, I'm disappointed that I
wasn't thinking about using "text" to
workaround the "contains_text" issue.  LOL
>   
Thanks. I actually want to discourage use of contains_text
and suggest 
that people use text.include? instead (or text.match for
regexps). I 
think it is a really good example of how Watir benefits from
Ruby and 
being able to use Ruby's intuitive libraries.

But i will put contains_text back in for 1.5, at least.

Bret
_______________________________________________
Wtr-general mailing list
Wtr-generalrubyforge.org
htt
p://rubyforge.org/mailman/listinfo/wtr-general
[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )