IDEMPIERE-92 Fixing bug related to braces in window name
This commit is contained in:
parent
63f6cdbf2b
commit
aa251fba97
|
@ -163,7 +163,6 @@ public class ZkFixture extends SpiderFixture {
|
||||||
public void openWindow(String label) {
|
public void openWindow(String label) {
|
||||||
Widget widget = new Widget("$treeSearchCombo");
|
Widget widget = new Widget("$treeSearchCombo");
|
||||||
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;
|
|
||||||
WebElement element = widget.$n(webDriver, "real");
|
WebElement element = widget.$n(webDriver, "real");
|
||||||
element.clear();
|
element.clear();
|
||||||
element.sendKeys(search);
|
element.sendKeys(search);
|
||||||
|
|
Loading…
Reference in New Issue