WebWindowObject
represents an open window or tab in a web browser.
Details
- WebExecute[session,"BrowserWindows"] gives the current list of web window objects for a web session.
- The following WebExecute commands operate on windows specified by WebWindowObject[…]:
-
"SetBrowserWindow"window make a window active "SetWindowPosition"{window,{x,y}} set the screen position of a window "WindowMaximize"window maximize a window "WindowMinimize"window minimize a window
Examples
Basic Examples (2)
Use WebExecute to get the open window as a WebWindowObject:
Delete the session with DeleteObject:
Use WebExecute to open a new page:
Use WebExecute to open a new browser tab:
Use WebExecute to get the open windows:
Use WebExecute to get the title of the first page:
Use WebExecute to switch to the second window:
Use WebExecute to get the title of the second page:
Delete the session with DeleteObject:
Text
Wolfram Research (2019), WebWindowObject, Wolfram Language function, https://reference.wolfram.com/language/ref/WebWindowObject.html.
CMS
Wolfram Language. 2019. "WebWindowObject." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/WebWindowObject.html.
APA
Wolfram Language. (2019). WebWindowObject. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/WebWindowObject.html