forked from chromedp/chromedp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Refactored API calls to be cleaner - Changed types that shoudn't be exported to not-exported - Updated examples with API changes - Added unit test for Title action
- Loading branch information
Kenneth Shaw
committed
Feb 12, 2017
1 parent
f73c429
commit 3673164
Showing
11 changed files
with
285 additions
and
318 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
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package chromedp | ||
|
||
import ( | ||
"errors" | ||
) | ||
|
||
// Error types. | ||
var ( | ||
// ErrInvalidDimensions is the error returned when the retrieved box model is | ||
// invalid. | ||
ErrInvalidDimensions = errors.New("invalid dimensions") | ||
|
||
// ErrNoResults is the error returned when there are no matching nodes. | ||
ErrNoResults = errors.New("no results") | ||
|
||
// ErrHasResults is the error returned when there should not be any | ||
// matching nodes. | ||
ErrHasResults = errors.New("has results") | ||
|
||
// ErrNotVisible is the error returned when a non-visible node should be | ||
// visible. | ||
ErrNotVisible = errors.New("not visible") | ||
|
||
// ErrVisible is the error returned when a visible node should be | ||
// non-visible. | ||
ErrVisible = errors.New("visible") | ||
|
||
// ErrDisabled is the error returned when a disabled node should be | ||
// enabled. | ||
ErrDisabled = errors.New("disabled") | ||
|
||
// ErrNotSelected is the error returned when a non-selected node should be | ||
// selected. | ||
ErrNotSelected = errors.New("not selected") | ||
|
||
// ErrInvalidBoxModel is the error returned when the retrieved box model | ||
// data is invalid. | ||
ErrInvalidBoxModel = errors.New("invalid box model") | ||
) |
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
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
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
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
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
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
Oops, something went wrong.