For each session, when the phone is launched, the application window is minimized by default, I need to “Switch Application Desktop” then Click to the locator of minimized icon.
It works fine at PC1. But on PC2, when “Switch Application Desktop”, it remembered the desktop of PC1, so I cannot click on the icon from PC2.
Could someone give me an advice?
So this is a bit of an oversight on my part. Essentially the reason why this is happening this way is because each time open application is run we check for a desktop session. If it doesn’t exist we create it, if it does we just used the cached one.
Both times it attempts to use the alias of ‘Desktop’ so the 2nd time it sees that the desktop session for PC1 is there and just accepts it as the session it wants. This will require some rework but for the time being you can do this for a work around:
Run open application again for PC2 with the alias for ‘Desktop2’ and app being ‘Root’. Then anytime you want to switch to it run 'Switch Application | Desktop2’
@nmquan I went ahead and implemented something that should work. Let me know if you have any issue or have ideas for it. When you open your 2nd application you would do something like:
This is useful for keywords that attempt to use the desktop session as a sort of retry or to locate elements that sometimes appear outside the app session (combobox sections for example).
Anyway this is in 2.10.0 which I just pushed so let me know what you think.