augustspies Posted October 14, 2013 Share Posted October 14, 2013 I currently have an input box set up to launch a webpage depending on what number is entered. How do I first check to see if a browser window is opened and if there is one create the webpage in a new tab? If there is not a current browser window opened then go ahead and create one? Link to comment Share on other sites More sharing options...
JohnOne Posted October 14, 2013 Share Posted October 14, 2013 WinExists() _IEAttatch) / _IECreate() augustspies 1 AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
augustspies Posted October 14, 2013 Author Share Posted October 14, 2013 Thx JohnOne. How exactly would that be set up? - I understand winexist but how would that work if the browser window to check for is always changing? I would like to create a new tab if a browser window exists I believe this is why you suggested ieattach and iecreate? - would it be possible to see an example of how to set this up? Thx for your time Link to comment Share on other sites More sharing options...
Danp2 Posted October 14, 2013 Share Posted October 14, 2013 _IECreate has a tryAttach parameter that may work for you. Also, you can open a new tab using __IENavigate (note the double underscore; search the forum for some examples). Latest Webdriver UDF Release Webdriver Wiki FAQs 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