by Mac » Fri May 25, 2007 4:40 am
here is the code:
-------------------------------------------------------------------------
static final String specCharName0 = "!\"§$%&()";
static final String specCharName1 = "=?/";
static final String specCharName2 = "32+*#-_";
static final String specCharName3 = "´`°^.:,;";
static final String specCharNameTable = specCharName0+specCharName1+specCharName2+specCharName3;
[...]
TableCreatorHelper tab = new TableCreatorHelper(ui,specCharNameTable,c0,treeItem,"MONA");
[...]
ui.click(2,new TreeItemLocator(tab.getPathToTable(),tree));//clicking Path twice
------------------------this is what the methods do-----------------
public String getPathToTable(){
return tableTreeItem.getPath()+"/"+mySchema+"/"+getTableName();
}
public String getTableName(){
String newTabName = tableName.toUpperCase();
newTabName = newTabName.replaceAll("ß","SS");
return newTabName;
}
------------------------------------------------------------------
So the TreeItem I am looking for is:
guiTester/dummy_landscape/Servers/BERD3000138998A/MAXDB3/MONA/Tables/MONA/!"§$%&()=?/32+*#-_´`°^.:,;
Where !"§$%&()=?/32+*#-_´`°^.:,; is the actual name of the Tree item, but Iguess the ui is looking for an item named !"§$%&()=?
with the subitem 32+*#-_´`°^.:,;
so how can I overcoem this issue ?