[Wtr-general] Paramerization in Ruby
Christian Kreutzer
herr.kreutzer at googlemail.com
Mon Dec 4 08:30:28 EST 2006
Hi Sikander,
Google should be your friend on the search for some good ruby
tutorials. The archive of this mailing list has always been a good
resource for me.
Christian
On 12/4/06, sikander <sikander at marlabs.com> wrote:
>
>
>
> Hi All!
>
> Here is the my code, for which i need parameterization
> require 'watir'
> require 'win32ole'
>
> include Watir
>
> test_site = 'http://www.google.com'
> ie = IE.new
> ie.goto(test_site)
>
> ie.text_field(:name, "q").set("pickaxe")
> ie.button(:name, "btnG").click
>
> [Note: In QTP to parameterize the above value, we write the following code
> Browser("Google").Page("Google").WebEdit("q").Set
> DataTable("p_Text", dtGlobalSheet)
> Browser("Google").Page("Google").WebButton("Google
> Search").Click
>
> So can anybody replace the above code with ruby syntax?
>
>
> _______________________________________________
> Wtr-general mailing list
> Wtr-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/wtr-general
>
>
More information about the Wtr-general
mailing list