Since recently (I believe it occurs since our switch to SmarGWT 4.0), we are experiencing a lot of problems with automated testing. It turns out that selenium cannot click on elements where their locator includes HTML code.
For instance, a Tab, where we do setTitle as follows:
This works fine, and the scLocator for the close button on the tab becomes this:
Then, since we know the ID, we have always removed "title" from the locator to perform the click. Sadly, the below locator that used to work, doesn't anymore.
Can this be fixed to make it work like in SmartGWT 3 ?
Note that I tested my case with a very recent build:
SmartClient Version: v9.0p_2013-09-30/Pro Deployment (built 2013-09-30)
For instance, a Tab, where we do setTitle as follows:
Code:
String formattedTitle = "<span>" + Canvas.imgHTML(icon) + tabTitlePrefix + tabTitleSROPrefix + " " + tabTitleText + "</span>"; setTitle(formattedTitle);
Code:
//TabSet[ID="sid_workspace"]/tab[title=<span> Contract 600044<%24fs%24span>||ID=tab_2]/icon
Code:
//TabSet[ID="sid_workspace"]/tab[ID=tab_2]/icon
Note that I tested my case with a very recent build:
SmartClient Version: v9.0p_2013-09-30/Pro Deployment (built 2013-09-30)
Comment