The web app I'm testing has a two-level left-side panel menu. I'm trying to select a sub-menu item. I had the code working:
Now this code is finding and selecting another sub-menu item that is in the same position as the sub-menu item I want to select. It's too hard to describe in words what's happening. Let's try a diagram. Suppose I want to select Sub1C. I find and move over Main1. The browser displays the Sub1A, Sub1B, and Sub1C menu items:
The code finds and tries to click on Sub1C. But what actually happens is the code moves the mouse to Main3 and selects and clicks on Sub3A menu item.
If you overlap the two menus I showed above you'll see that Sub3A is positioned in the same location as the Sub1A menu item. My environment: Windows 7 64-bit InternetExplorerDriver 3.8.0 Edge |