WebWindowObject

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"windowmake a window active
    "SetWindowPosition"{window,{x,y}}set the screen position of a window
    "WindowMaximize"windowmaximize a window
    "WindowMinimize"windowminimize a window

Examples

Basic Examples  (2)

Start a web session:

Use WebExecute to get the open window as a WebWindowObject:

Delete the session with DeleteObject:

Start a web session:

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:

Wolfram Research (2019), WebWindowObject, Wolfram Language function, https://reference.wolfram.com/language/ref/WebWindowObject.html.

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

BibTeX

@misc{reference.wolfram_2024_webwindowobject, author="Wolfram Research", title="{WebWindowObject}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/WebWindowObject.html}", note=[Accessed: 24-April-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_webwindowobject, organization={Wolfram Research}, title={WebWindowObject}, year={2019}, url={https://reference.wolfram.com/language/ref/WebWindowObject.html}, note=[Accessed: 24-April-2024 ]}