Closing TAB of an Application

Ask general questions here.
fleipold
Posts: 37
Joined: Fri Jun 09, 2017 7:04 am

Re: Closing TAB of an Application

Post by fleipold » Tue Jul 04, 2017 7:37 am

Good morning,

Sorry i didn´t reply for a while but i was ill.
But i now found a little bit time to do some further investigations. I tried as suggested to limit my actions only to the close button. I tried it with the hole picture of the element and only with a picture of the close , maximize and minimize button but both of them didn´t work.

I then tried to click the element with a relative point in the recorded element ( 1000 pixel from the left upper corner and 13 down but it didn´t work so far.

but i plan to do some further attempts today and will report back how its going

Djones92
Posts: 9
Joined: Tue Aug 16, 2016 3:54 pm

Re: Closing TAB of an Application

Post by Djones92 » Wed Jul 26, 2017 3:28 pm

On my machine, I can't check your snapshot. But from my experience with inner tabs in my application, if your close button (the X) is trackable and in your repository, I would use a *take any* regex in the path weightings to remove the dependency on the inner window name (the one that uses that variable you mentioned)

Let me know if that works :D

Shakib
Posts: 31
Joined: Tue Jan 06, 2015 7:22 am

Re: Closing TAB of an Application

Post by Shakib » Tue Aug 01, 2017 7:15 am

Are you able to track inner window if yes then use below code:

Form currentForm=repositoryObject.innerWindowControl.Self;
currentForm.close();