LondonNDIB Posted December 29, 2014 Share Posted December 29, 2014 I would have figured this would have been covered extensively, but my exhaustive searches have me going in circles. I just want to check if an IE page is already open and, if it is, attach it and if it isn't then create it. But the problem I'm running into it tabs. What is a reliable method of checking all open tabs against a title and returning the object reference if there's a match (first match of many is perfectly OK for me)? So far I've only been able to do it if I have a single tab or, possibly, if the tab in question is active. Thanks. Link to comment Share on other sites More sharing options...
MikahS Posted December 29, 2014 Share Posted December 29, 2014 Have a look at how this person does it: link Snips & Scripts My Snips: graphCPUTemp ~ getENVvarsMy Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4 Feel free to use any of my code for your own use. Forum FAQ Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted December 30, 2014 Moderators Share Posted December 30, 2014 Here's an >extended library for IE I've written. It has tab creation and management by you creating it, management loosely used there, because you'd have to manage the tab browser objects as you would if you created browsers with _IECreate. It does not have a function for attaching to existing tabs however. I hadn't thought of that to be honest. But at the same time, don't see a more efficient way that the suggested _IEAttach. 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. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted December 30, 2014 Moderators Share Posted December 30, 2014 This may help with all of your tab needs (except the ability to focus on the tab, probably need something like UIAutomation for that, too much code to implement in this library and he's done a good job with his code.) Here's the link to the changes that were just added for my extended library though: 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. Link to comment Share on other sites More sharing options...
junkew Posted December 31, 2014 Share Posted December 31, 2014 See the iuiautomation examples. The browser examples give an overview on how to do what you want. I hope early next year to update iuia framework further FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets Link to comment Share on other sites More sharing options...
LondonNDIB Posted December 31, 2014 Author Share Posted December 31, 2014 Weird... I didn't get any notification that anyone responded. I only happened to come back here and saw the posts. Here I thought I was being ignored! Thanks for your replies... I have to go through everything when I have some time, but really I found a work-around and decided to avoid the tabs issue. Now to figure out why I didn't get notified. Link to comment Share on other sites More sharing options...
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