This repository has been archived by the owner on Sep 16, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,25 @@ | ||
User Guide | ||
========== | ||
|
||
FoxPuppet is a library for automating user interactions in Firefox using Selenium. | ||
This section give some example use cases of FoxPuppet. | ||
|
||
Example | ||
------- | ||
|
||
This is an example for setting up FoxPuppet and opening a private window:: | ||
|
||
from foxpuppet import FoxPuppet | ||
from selenium.webdriver import Firefox | ||
|
||
|
||
selenium = Firefox() | ||
foxpuppet = FoxPuppet(selenium) | ||
|
||
window = foxpuppet.browser.open_window(private=True) | ||
selenium.quit() | ||
|
||
This example opens first a non-private browser window, then proceeds to open a private browser window. | ||
Finally it quits via :py:func:`selenium.quit`. | ||
|
||
:Note: The initial browser window is automatically assigned to the :py:attr:`browser` attribute and is always available. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters