I fixed a bug and created a test case in the reference project
tellurium-junit-java.
Please see the following UI module,
public class GoogleModule extends DslContext {
public void defineUi() {
ui.Container(uid: "Google", clocator: [tag: "table"]) {
InputBox(uid: "Input", clocator: [tag: "input", title: "Google
Search", name: "q"])
SubmitButton(uid: "Search", clocator: [tag: "input", type:
"submit", value: "Google Search", name: "btnG"])
SubmitButton(uid: "Lucky", clocator: [tag: "input", type:
"submit", value: "I'm Feeling Lucky", name: "btnI"])
}
}
public void dragAndDrop() {
dragAndDrop "Google.Lucky", "+70,-300"
pause 500
}
public void dragAndDropTo() {
dragAndDropTo "Google.Search", "Google.Lucky"
pause 500
}
}
and the test case
public class GoogleTestCase extends TelluriumJavaTestCase{
private static GoogleModule gm;
@BeforeClass
public static void initUi() {
gm = new GoogleModule();
gm.defineUi();
}
@Test
public void testDragAndDrop(){
connectUrl("http://www.google.com");
gm.dragAndDrop();
}
@Test
public void testDragAndDropTo(){
connectUrl("http://www.google.com");
gm.dragAndDropTo();
}
}
The test case works fine except that is no visual effect.
On Feb 14, 6:44 am, Theyagarajan S <[email protected]> wrote:
> On Sat, Feb 14, 2009 at 4:48 PM, <[email protected]> wrote:
>
> > Trunk code use Selenium 1.0 Beta 2 and Groovy 1.5.7 or higher. Could
> > you
> > please try use the new selenium-server.jar and selenium-java-client-
> > driver.jar?
>
> No it didnt. Here are the versions
>
> groovy :1.5.7
> selenium 1.0-beta-2
> and telurium 0.6.0
>
> and the trace is herehttp://pastebin.com/m5a24c8f7
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"tellurium-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/tellurium-users?hl=en
-~----------~----~----~----~------~----~------~--~---