I'm using Selenium and Chrome WebDriver to automate UI testing for a taskpane-based Outlook add-in. While Selenium can interact with the main Outlook web app, it fails to locate or interact with elements inside the taskpane when opened. This issue prevents me from retrieving element properties (e.g., textContent, innerHTML) and running automated UI tests.
Environment
- Platform: PC Desktop
- Host: Outlook Web (OWA)
- Office Version Number: N/A
- Operating System: Windows 11
- Browser: Chrome (latest stable version)
Expected Behavior
When using Selenium to automate UI testing for a taskpane-based Outlook add-in, I expect to:
- Open the Outlook web app.
- Launch the taskpane add-in.
- Use JavaScript through Selenium to locate elements in the taskpane and retrieve their properties (e.g., textContent, innerHTML).
Current Behavior
Selenium is able to:
- Launch the Outlook web app.
- Navigate and interact with elements outside the taskpane. However:
- When the taskpane is opened, Selenium is unable to locate or interact with the elements inside it using JavaScript.
- Attempts to retrieve properties like textContent and innerHTML of taskpane elements fail or return null/undefined.
Steps to Reproduce
- Launch the Outlook web app using Selenium and Chrome WebDriver.
- Open the taskpane-based add-in.
- Use Selenium to execute JavaScript to locate elements in the taskpane iframe and retrieve their properties.
- Observe that element interactions or property retrieval do not work.
Context
This issue blocks automation of UI testing for the taskpane-based Outlook add-in, making it challenging to verify element properties and run UI automated tests. The inability to interact with taskpane elements via JavaScript affects:
- UI validation during testing.