Div click does not work
Brought to you by:
jvmenen
I am trying to use Watin to test the google translalte page, but that the source language and target language div could not be open by calling the following functions:
browser.Div(Find.ById("gt-sl-gms")).FireEvent("onclick");
or
browser.Div(Find.ById("gt-sl-gms")).click();
browser.Div(Find.ById("gt-tl-gms")).FireEvent("onclick");
or
browser.Div(Find.ById("gt-tl-gms")).click();
Please advice. Thanks a lot!
Not sure what you are trying to accomplish, but to put text in the source field and have it translated you would do something like
IE myIE = new IE("http://translate.google.com/");
myIE.TextField(Find.ById("source")).TypeText("this is a test");