Forum Discussion
Hello,
According to below article “visibleonscreen” property is true only when if a control or its part is on screen and can accept mouse clicks.
https://support.smartbear.com/viewarticle/85066/
Below are my queries around this issue-
Are you able to click on the object manually?
There might be the situation that there is some event being fired in background which makes this object clickable or changes the css property(which you mentioned),so you need to fire that event,you can also talk to the developers.
Cheers!!
CSS (and other rendering code) can manifest all sorts of strange effects depending on what they're using to show/hide items on screen.
If VisibleOnScreen being false prevents you using the Click method directly (does it? Not sure personally ...), but you can otherwise still get the object and all it's properties, I guess you could simply get it's co-ordinates and then use those to apply a click at screen level? Which should do the trick. I have to do something similar with some custom event triggers we have as hotspots within a tree object.
It's not ideal, but it should work.
Of course, this only really holds up if you are certain of visibility (sounds like you are) and all you need to do is apply a simple click on a certain point. If the clicking and interaction is going to get more complex, it gets trickier.
- ameykhopade10 years agoContributor
Yes tried using the co-ordinates but the object is a filter button in the column name and the co-ordinates changes asa soon as the column width changes depending upon the labels in the column.
so the co-ordinates are not fixed
- Ryan_Moran10 years agoValued Contributor
You could get the coordinates and then make a coordinate based click.
- Colin_McCrae10 years agoCommunity Hero
Yup. Just retrieve the up-to-date co-ordinates in the step before you do the click.
If you have the object assigned to an Alias, and have already used it, you may need to use Refresh Mapping Info rather than plain Refresh. (Ran into exactly this issue the other day with a multi-purpose button which alters it's caption throughout the run)