Então, eu sei como encontrar o nome da janela ativa
currentWindow = bot.Send("GET", "/window_handle")
bot.SwitchToWindowByName currentWindow
Existe uma maneira de obter o nome da janela inativa que acabei de exibir?
Eu tentei acessar o console e digitar window.name e obtive "" Também tentei usar window.document.name e obtive "download.phtml", mas
bot.SwitchToWindowByName download.phtml
gerou um erro Runtime 424 Object Required.
Explicitamente com
bot.SwitchToWindowByTitle "Title" '<==Make sure it is the actual Title you are using of the Window
Se acabou de aparecer, você também pode tentar
bot.SwitchToNextWindow
Este artigo é coletado da Internet.
Se houver alguma infração, entre em [email protected] Delete.
deixe-me dizer algumas palavras