[Wtr-general] Paramerization in Ruby

Christian Baumann mail at chriss-baumann.de
Mon Dec 4 08:22:06 EST 2006


http://www.rubycentral.com/book/

sikander schrieb:
> 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wtr-general/attachments/20061204/24fb7c48/attachment.html 


More information about the Wtr-general mailing list