urban07 Posted January 9, 2015 Posted January 9, 2015 Hello, I was wondering if it's possible to attach a new opened IE tab to variable, knowing only what the link should look like. I mean, this <anything> might be a completely random number. Page opens as a new tab after submitting html form. Please help me - I'm out of ideas and that's the last possible way :/
Moderators SmOke_N Posted January 9, 2015 Moderators Posted January 9, 2015 _IEJS_WinGetBrowserObjArray returns an array of all the browser objects open. You could use regular expression to filter what you want from the array objects locationurl. eg. StringRegExp($array[n].locationURL, "regular expression"). You can find the function in this >library. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
Danp2 Posted January 9, 2015 Posted January 9, 2015 Did you try _IEAttach? It should be able to locate the tab using a partial URL. Latest Webdriver UDF Release Webdriver Wiki FAQs
urban07 Posted January 10, 2015 Author Posted January 10, 2015 (edited) Thank you both! @Danp2 I tought that I need full url to use this function, but apparently it works @SmOke_N I'll check out this function - might be useful too. Eventually I simply used _IEAttach. Thanks again! Edited January 10, 2015 by urban07
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now