I’m new with RPA. I’m trying write my own automation test case with an outlook plugin. The process should be:
- Launch Outlook.
- Click plugin icon in Outlook Ribbon to log in. The text for the icon is “Log In”.
Below is my python script:
from RPA.Desktop import Desktop
desktop = Desktop()
def lanuch(): desktop.open_application("my application path and executive file here") time.sleep(10) desktop.click('ocr:"Log In"') time.sleep(10)
But when I run with robotframework, it shows:
TimeoutException: No matches found for: ocr:“Log In”
1.Verifyed the application window was opened and the “Log In” icon also displayed on windows.
2. Tried “desktop.wait_for_element(‘ocr:“Log In”’)”, also cannot find this icon.
Ask for help:
Are there any steps I’m missing here? How to implement the python script find element via control’s text?
Thanks very much!