au3WebDriver icon indicating copy to clipboard operation
au3WebDriver copied to clipboard

_WD_GetSession - Multiple Sessions

Open seadoggie01 opened this issue 3 years ago • 4 comments

This doesn't appear to work with multiple sessions running. It returns the value of the response from the last session created.

Also, this causes $sSession and $sFuncName to go unused in the function :) Not sure why the commented out code, but I'm guessing this is a bit of a WIP? It claims to return a dictionary object, but returns a string as far as I can tell.

seadoggie01 avatar Apr 24 '21 18:04 seadoggie01

The Get Session functionality was added and then removed from the W3C draft spec, so the code is commented until they determine how this should function. See https://github.com/w3c/webdriver/commit/35df53a8a71500e264497f0cbda9f30a94e548cc for details.

Meanwhile, I temporarily changed the code to return the information that is available. Probably should update the function header with these details.

Danp2 avatar Apr 24 '21 20:04 Danp2

@seadoggie01 can you please prepare some small reproducer ?

mlipok avatar Mar 02 '23 09:03 mlipok

@mlipok No. This is from 2 years ago and I hardly remember what I was doing 😁

If I had to guess, the old documentation said something about retrieving a dictionary of sessions and I wanted to use it to close off extra/errored-out sessions. Now, I write sessions to a global ini file in case I need to close them from another script.

I'd be fine with closing this issue.

seadoggie01 avatar Mar 02 '23 12:03 seadoggie01

Nothing to see here until the Get Session functionality is reintroduced to the specs.

😝

Danp2 avatar Mar 02 '23 13:03 Danp2