Search code examples
rpaautomationanywhere

Automation Anywhere. Using variables to select window in object cloning command


I'm using Object cloning command with internet explorer. In the object cloning command, I select the window from the drop down list and clone my object. If I run the task everything works fine. Then I changed the window name with a variable. This variable has the exact same value as the name selected from the drop down list.

When I run the task with the variable, it restores the screen (not full screen). Although the task works fine most of the time, some properties of the webpage change when the screen is not maxed. I tried using maximize window but the next object cloning command will restore the window again.

Has anyone had this issue before?


Solution

  • I finally got to fix the problem. The problem was the variable I was using. The first time you use a new variable to select a window in object cloning, it will prompt a list of open windows so that you refer your variable to it. It looks like the variable memorizes the size of the windows the first time you use it. At first I didn't think this was the problem because I deleted and recreated the same variable, and also changed it's name. Only when I created a complete different variable, use it for object cloning and selected "none of the above" from the list window, then it would work with out restoring the screen. I'm not 100% sure if this is the reason, but this fixed the problem for me.

    enter image description here