Help!

Hi Guyz,

public class TestSeleniumV2 implements EntryPoint {

	public void onModuleLoad() {
		Button b1 = new Button("click ME!");
		b1.setID("teto");
		final Label l1 = new Label("labelTest");
		l1.setLeft(100);
		b1.addClickHandler( new ClickHandler() {
			
			@Override
			public void onClick(ClickEvent event) {
				System.out.println("Button is Clicked");
				Window.alert("test");
				l1.setContents("Modifyed");
			}

			
		});
		l1.draw();
		b1.draw();
	}
}

Test Class:

HttpCommandProcessor processor = new HttpCommandProcessor("localhost",
              4444,
              "*firefox",
              "http://127.0.0.1:8888/TestSeleniumV2.html?gwt.codesvr=127.0.0.1:9997");
      
      selenium = new DefaultSelenium(
               processor);
      selenium.start();
      selenium.open("http://127.0.0.1:8888/TestSeleniumV2.html?gwt.codesvr=127.0.0.1:9997");
      selenium.waitForPageToLoad("20000");
      
      //selenium.clickAndWait("scLocator=//Button[ID=\"teto\"]");
     // selenium.waitForCondition("selenium.browserbot.getCurrentWindow().document.getElementById('teto')", "400");
	 selenium.click("scLocator=//Button[ID=\"teto\"]");

My Question is why when i execute the above code the Window.alert() Does not execute in spite of the syso and changing the label content are executed?

Any one knows?

Any body can help?

Be sure your post includes:

  1. the SmartGWT or SmartClient version and browser version(s) involved;

  2. for a server-side problem, the complete logs generated during processing of the request;

  3. for a client-side problem, the contents of the Developer Console (see FAQ for usage);

  4. if there is a JavaScript error, the stack trace logged in the Developer Console (from Internet Explorer if possible); and

  5. sample code.

Posts with incomplete information are much more likely to be ignored.

Tip: Use [CODE] and [/CODE] to surround code.

Try to explaining what are you trying to achieve rather than only posting CODE.

And be polite.

GL

Thanks for your response i added