Quantcast
Channel: New board topics in SmartBear Community
Viewing all articles
Browse latest Browse all 20990

regex to find childobject

$
0
0

Hi all. 

I'm trying to find a childobject on a modal page. This modal page has a changing id.... 

 

I made a regex to find the page: 

 

regEx = """http://(\w*).(\w*).(\w*)/MP02ZoekArtikel\.tn\?window=modal&OpenedWithFrameworkUi=1&id=%7b([0-9a-fA-F-]+)%7d"""

 

The childobject is a FlexGrid. 

Set VSFlexGrid8L = sys.HighlightObject(Sys.Process("Framework.UI").WPFObject("HwndSource: PageViewerWindow", "Zoek Artikel").WinFormsObject("WinFormsAdapter", "").WinFormsObject("WebBrowserWithCustomInternetSecurityManager", "", 2).WinFormsObject("Shell Embedding", "").Window("Shell DocObject View", "", 1).Window("Internet Explorer_Server", "", 1).Page(regEx).Child(0).FindChild("WndClass","VSFlexGrid8L"))

 

I do know that I can't use Page(regEx), but... how can I use the regex to find that page??

 

Thanks. 

Giel 


Viewing all articles
Browse latest Browse all 20990

Trending Articles