regex to find childobject
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