Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Get Context Menu for Internet Explorer #7

@bangonkali

Description

@bangonkali

I tried the following script to get to the context menu of Internet Explorer when you click the Tools Icon (Gear Like Icon).
image

This is the target i wanted to click.
image

However upon using Visual Automation Verify I noticed the context menu is not under the IE Window but instead it is under the Desktop Pane of the OS itself.
image

So I resorted to making my Window to '*' to catch all Windows.

Here's my code:

from ldtp import *

click ('*Internet Explorer', 'Tools')
selectmenuitem('*', 'Context;Internet Options')

This is the version of IE im using:
image

For my script I get the following Error:

Traceback (most recent call last):
  File "D:/Projects/SandBox/configurator/configurator/base/base.py", line 7, in <module>
    selectmenuitem('*', 'Internet Options')
  File "C:\Program Files (x86)\VMware\CobraWinLDTP\ldtp\client.py", line 72, in __call__
    return self.__send(self.__name, args)
  File "C:\Python27\lib\xmlrpclib.py", line 1578, in __request
    verbose=self.__verbose
  File "C:\Program Files (x86)\VMware\CobraWinLDTP\ldtp\client.py", line 193, in request
    raise LdtpExecutionError(e.faultString.encode('utf-8'))
ldtp.client_exception.LdtpExecutionError: Unable to find Object: Internet Options

Any suggestions?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions