Search webelement on browser another window
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Search webelement on browser another window
Search webelement on browser another window, I am working on a scenario where after click on a link ..it's open in browser another window where i need to identify web elements
I get that window address by using Aliases.browser.BrowserWindow
but I'm not able to find web element on that another window page where i need to perform click event.
how can i do the same please guide me.
Solved! Go to Solution.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
> Aliases.browser.BrowserWindow
I am not sure how BrowserWindow is namemapped, but as long as you identify correct web page (not browser window) you should be able to find the required web element with no problem.
/Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @AlexKaras
> I am not sure how Browser Window is name mapped,
For my query, I tried to use record mechanism and then convert it into script then I found in my name mapping browser window is displaying under browser tree. when I wndcaption value for same it was for that exact second windows wndcaption details there.
But I'm not able to find out page on that browser window that's why I am not able to identify webelemnt.
Condition Describe again: I open a link that open in browser another window(paypal payment open in another window)>> so on that new browser window I need to enter login credentials for same .. but I'm not finding any solution with my script
Hi, let's forget this
Aliases.browser.BrowserWindow but if you want handle situation like this , I would you handle this. Please guide me
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
> I open a link that open in browser another window
Every web element in TestComplete is a descendant of a page object that corresponds to web page opened in a browser. So the generic syntax is
Browser.page.FindChild(...)
The above means that you must identify the new web page that is opened after clicking the link (use Object Browser for that) and use this page as a root for the search of the elements that your test code needs to interact with on it.
/Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
