I just updated everything to your newest release. It is definitely better than it was before, but I can still get Chromedriver to close when closing the active tab maybe 10-20% of the time. I actually caught Task Manager saying Chromedriver was "Suspended" right before it disappeared. It seems like it is crashing versus closing naturally?Xeo786 wrote: ↑31 Oct 2022, 02:06Yeah I notice that after the driver update, Before, when we close any chrome tab, using Session.close() it closes it then returns with the window ID of the active tab,
But now it returns with an array of all the tabs window ID, and now it's up to us to choose which window we want to switch, and I noticed
it is always the last index in the array that is the active tab after closer, so did this
I tried a small change in Rufaydium.ahk and that seemed to increase reliability a little bit, but it still closes every now and then.
Code: Select all
close()
{
Tabs := this.Send("window","DELETE")
; this.Switch(this.currentTab := tabs[tabs.Length()])
this.Switch(tabs[tabs.Length()])
}
EDIT 2: I caught it!