EdgeSwitchWindow
EdgeSwitchWindow>session_id,window_handle,result
Switches the browsing context of a session created by EdgeStart to the specified window/tab. Requires a handle returned from EdgeGetWindows.
See also: Edge Functions
Example
Let>EdgeDRIVER_EXE=c:\msedgedriver.exe
//start a Edge session
EdgeStart>session_id
//navigate to google.com
EdgeNavigate>session_id,url,https://www.w3schools.com/jsref/met_win_open.asp
//Click on accept
EdgeFindElements>session_id,id,accept-choices,elements
EdgeElementAction>session_id,elements_1,click
Wait>1
//clicking on Try it yourself will create a new tab
EdgeFindElements>session_id,link text,Try it Yourself »,elements
EdgeElementAction>session_id,elements_1,click
Wait>1
//find the new tab handle (it's window 2) and switch to it
EdgeGetWindows>session_id,window_list
EdgeSwitchWindow>session_id,window_list_2,result
//now click on the menu button on the new tab
EdgeFindElements>session_id,id,menuButton,allAs
EdgeElementAction>session_id,allAs_1,click