Followinf test script open the google browser but not clicking on the
link Advance Search.
require "chrome_watir"
browser = ChromeWatir::Browser.new
browser.goto 'http://www.google.com'
browser.link(:text, "Advanced Search").click
browser.text_field(:id, "as_oq0").set "watir"
browser.text_field(:id, "as_oq1").set "ruby"
browser.text_field(:id, "as_oq2").set "testing"
browser.radio(:id, "ss").set
browser.button(:value, "Advanced Search").click


I have tried with following to find whether it is recognizing or not.
p browser.link(:text, "Advanced Search").text
p browser.text_field(:id, "as_oq0").id
p browser.text_field(:id, "as_oq1").id

But it is not giving the text or id.







On Nov 4, 3:47 pm, Željko Filipin <zeljko.fili...@wa-research.ch>
wrote:
> On Wed, Nov 4, 2009 at 11:32 AM, shradha_Dalvi <kshradh...@gmail.com> wrote:
> > According to it the I am not able to execute the test script given on
> > the said link.
>
> What is the problem?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to