# Ie.contains\_text method

**URL:** <https://www.ruby-forum.com/t/ie-contains-text-method/67681>\
**Category:** Ruby\
**Created:** [September 6, 2006, 12:54am UTC](https://www.ruby-forum.com/t/ie-contains-text-method/67681 "2006-09-06T00:54:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ban\_Hoang](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/9fc348/32.png) [@Ban\_Hoang](https://www.ruby-forum.com/u/Ban_Hoang)\
**Post date:** [September 6, 2006, 12:54am UTC](https://www.ruby-forum.com/t/ie-contains-text-method/67681/1 "2006-09-06T00:54:47Z")

</div>

Hi,

I am just wondering why the ie.contains\_text method works in the IE web  
developing by PHP code.  
I try ie.contains\_text with the IE developed by javascript. It did check  
the text in the IE. With IE develop by PHP code, it is not check the  
text display in the IE develop by PHP code? I am missing something?

Thanks,

* * *

## Below is the code: ( Eastgate\_Mall is displayed in IE page)but the test always Failed

if $ie.contains\_text(‘Eastgate\_Mall’)  
puts:“Test Passed.”  
else  
puts:“Test Failed.”  
end
