serena_knight Posted December 2, 2021 Share Posted December 2, 2021 I have a IE browser up with 2 tabs tab1 points to a webpage tab2 points to a webpage the activate tab is tab2 i want to close tab1 How with a script? Link to comment Share on other sites More sharing options...
Danp2 Posted December 2, 2021 Share Posted December 2, 2021 Suggest that you review this prior thread -- Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
serena_knight Posted December 2, 2021 Author Share Posted December 2, 2021 yes, i saw and tried it but it didnt work Link to comment Share on other sites More sharing options...
serena_knight Posted December 6, 2021 Author Share Posted December 6, 2021 i am not creating a new tab i have 2 tabs and want the close the first tab. i tried the _ieattch with the "instance" parm but that dont work either Link to comment Share on other sites More sharing options...
Danp2 Posted December 6, 2021 Share Posted December 6, 2021 Telling us that something doesn't work without any further details isn't very helpful. Show us your code as well as the resulting output from the Scite console. Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
ad777 Posted December 6, 2021 Share Posted December 6, 2021 (edited) On 12/2/2021 at 3:52 PM, serena_knight said: I have a IE browser up with 2 tabs tab1 points to a webpage tab2 points to a webpage the activate tab is tab2 i want to close tab1 How with a script? maybe this help ya #include <IE.au3> Const $ie_new_in_tab=0x0800 _IEErrorNotify(0) ;-->No warnings.. :) $oIE = _IECreate("http://www.autoitscript.com");;create first tab on IE Browser $point = $oIE.Navigate("http://www.autoitscript.com/forum/", $ie_new_in_tab);;create Secound tab on IE Browser _IEQuit($oIE);;Close first tab Edited December 6, 2021 by ad777 iam ِAutoit programmer. best thing in life is to use your Brain to Achieve everything you want. 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