IDEMPIERE-92 Implement Selenium testing framework. Fixed open window fixture.

This commit is contained in:
Heng Sin Low 2013-04-10 17:00:55 +08:00
parent 36b0930ec9
commit c62b9e0002
1 changed files with 1 additions and 0 deletions

View File

@ -160,6 +160,7 @@ public class ZkFixture extends SpiderFixture {
String search = label.indexOf("&") > 0 ? label.substring(0, label.indexOf("&")) : label; String search = label.indexOf("&") > 0 ? label.substring(0, label.indexOf("&")) : label;
search = search.indexOf("(") > 0 ? search.substring(0, search.indexOf("(")) : search; search = search.indexOf("(") > 0 ? search.substring(0, search.indexOf("(")) : search;
WebElement element = widget.$n(webDriver, "real"); WebElement element = widget.$n(webDriver, "real");
element.clear();
element.sendKeys(search); element.sendKeys(search);
waitResponse(); waitResponse();
comboboxSelectItem("$treeSearchCombo", label); comboboxSelectItem("$treeSearchCombo", label);