问题
Was trying to close browser tab in Ranorex. The shortcut key "Ctrl+W" seems to work with Chrome and Firefox, but IE closes the application and not a tab. Please help.
回答1:
3 simple steps:
- Use the spy to uniquely identify the tab you want to close.
- Add the item to your repository.
- Drag the item from the repository in a recording and when prompted for an action to perform, select "Close Application".
I have successfully tested this on IE 11 with Ranorex 5.4.6.
Hope this helps!
来源:https://stackoverflow.com/questions/37142841/how-to-close-browser-tab-in-ranorex