Websphere testing - having issues with object ids
User (email@example.com) posted:
Has anyone tested with a webphere built web app?
I am trying to work with developers to get them to add ID or Name tags to
Seems like webshere's portlet methodology may be getting in the way.
Currently, most of the tables lack id or name attrribute causing Robot to
create a name for the object using Indexes.
i.e Type=HTMLTable; Index=11.
I have requested that they provide a name or id attribute to the object so
I can reference the object with a name that doesn't change.
Any suggestions on how to name objects using the webshere dev environment?
Re: Websphere testing - having issues with object ids
User Wright, Owen (Owen.Wright@Summit.Fiserv.com.nospam) posted:
Have you used RobotJ yet? I have been able to deal with a similar situation
by editing RobotJ's object map so that it recognizes the object in question
by some other method than the name, e.g. the classIndex property. See below:
.class myApp$StaticText 100
.classIndex 1 100
accessibleContext.accessibleName <dynamicvalue> 0
accessibleContext.accessibleRole label 100
So I dropped the weight for the accessibleName property to 0 because the
programmers in their infinite wisdom generate the label controls on the fly
and call them the same as their containing value. This way RobotJ doesn't
look to recognize the object by its name at all.
RobotJ isn't nearly as easy to use as 'Classic' Robot, but to work around
the issue you're having perhaps it's the thang u need.