Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Selenium Webdriver click() does not work on buttons

$
0
0
When trying to do a click() call from selenium on a smartclient button, nothing happens. The web element is found, but click() does nothing. I've tried also with using scLocator("SCButton") with same results.

Simple Selenium Code:
Code:

SmartClientFirefoxDriver ffDriver = new SmartClientFirefoxDriver();
ffDriver.setBaseUrl("http://localhost:8080/");
    ffDriver.get("trigger.html");
    WebElement button = ffDriver.findElement(ByScLocator.scLocator("//IButton[ID=\"SCButton\"]"));
button.click();

Simple Smartclient code:
Code:

isc.IButton.create({
        ID: "SCButton",
    left:0, top:240, width:150,
    title:"Click me!",
    click: function () {
                alert("HERE");
    }
})

SmartClient Version: SNAPSHOT_v9.1d_2014-01-16/PowerEdition Development Only (built 2014-01-16)

Browser: Firefox 26.0

Viewing all articles
Browse latest Browse all 4756

Trending Articles