sikander wrote:

> Hi!
>
> I have a text field. In this text box I want to verify the contents. 
> Each time the contents in the field is changing except ‘Hello World’, 
> should present in the text box. Can anybody tell me how to use regular 
> expression in this case?
>
> assert_equal( "/*Hello World */" , $ie.text_field(:name, 
> "text1").getContents )
>
> Thanks in advance
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Wtr-general mailing list
>[email protected]
>http://rubyforge.org/mailman/listinfo/wtr-general
>

assert( $ie.text_field( :name, "text1" ).getContents().match( /Hello 
World/ ), "text1 should contain 'Hello World' somewhere in it's body." )

jd

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to