Forum Discussion
This is one of the few cases where I'd suggest using FindChildByXPath. My guess is that the button is not recognized by TestComplete's engine as a UI component because it doesn't match some sort of pattern. So, an XPath search may find the button and allow you to interact with it.
- thePantz5 years agoContributor
I tried FindChildByXPath but no luck...
I'm noticed that the SmartBear extension doesn't inject the hidden nodes that it normally does in other pages.
When I right click on the extension while my chrome extension page is open I see:
I think this is a chrome limitation. It doesn't allow us to inject into it's internal pages.
For security considerations Chrome refuses all extensions to inject code into its internal pages (about:*, chrome:*). Because of that, internal pages, like the new tab page, the extension manager, the download manager, the history page and so on, are not accessible to TestComplete.
Source: https://support.smartbear.com/testcomplete/docs/app-testing/web/general/considerations.html
I may need to switch to selenium for this one... It doesn't have this limitation.
- JuliaBernikova5 years agoSmartBear Alumni (Retired)
Hi thePantz,
Because of the Chrome specifics, TestComplete can only get access to the viewport of the browser - the actual pages you visit. That's why currently there is no way to recognize elements in extension popups. As far as I know, the same goes for Selenium - it only allows you to work with the popup if you open it in Chrome as an individual HTML page, but TestComplete has no issues with this scenario as well.
As a workaround, I can suggest using the image-based approach - finding elements by their images. You can also use Optical Character Recognition to obtain elements by their text (please note that it requires a separate license for the TC IQ add-on).
- thePantz5 years agoContributor
JuliaBernikova As I explained in my original post, TestComplete cannot locate the elements when you open the popup on an indivudual page. I did not have difficulties when using Selenium so I have gone that route. I will not pay for an Image Recognition module when I can get more reliable results from Selenium.
Related Content
- 10 years ago
- 12 years ago
Recent Discussions
- 3 days ago
- 9 days ago
- 13 days ago