Constructor

simplex_client = Simplex(
    api_key: str
)
api_key
string
required

API key for authentication.

Session Creation

def create_session() -> str

Creates the remote browser session on the Simplex client.

return
str

A livestream URL of the current session. The livestream URL can be used for debugging and monitoring the session.

Session Closing

def close_session() -> None

Closes the remote browser session on the Simplex client.

return
None

Sample Usage

from simplex import Simplex
simplex = Simplex(api_key="<api_key>")
livestream_url = simplex.create_session()
print("Click here to view the running session: ", livestream_url)
# Now you can take actions on the browser!
simplex.goto("https://google.com")
simplex.wait(1000)
# ... etc :)
simplex.close_session()

Was this page helpful?