-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow click actions to fail silently with an additional parameter (#1444
) * Allow click actions to fail silently with an additional parameter * Make the failSilently directive work per-element
- Loading branch information
Showing
7 changed files
with
127 additions
and
1 deletion.
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
16 changes: 16 additions & 0 deletions
16
...gration-test/test-pages/broker-protection/actions/click-disabled-button-failSilently.json
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,16 @@ | ||
{ | ||
"state": { | ||
"action": { | ||
"actionType": "click", | ||
"id": "1", | ||
"elements": [ | ||
{ | ||
"type": "button", | ||
"selector": ".btn", | ||
"failSilently": true | ||
} | ||
] | ||
} | ||
} | ||
} | ||
|
15 changes: 15 additions & 0 deletions
15
injected/integration-test/test-pages/broker-protection/actions/click-disabled-button.json
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,15 @@ | ||
{ | ||
"state": { | ||
"action": { | ||
"actionType": "click", | ||
"id": "1", | ||
"elements": [ | ||
{ | ||
"type": "button", | ||
"selector": ".btn" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
|
16 changes: 16 additions & 0 deletions
16
...on-test/test-pages/broker-protection/actions/click-nonexistent-selector-failSilently.json
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,16 @@ | ||
{ | ||
"state": { | ||
"action": { | ||
"actionType": "click", | ||
"id": "1", | ||
"elements": [ | ||
{ | ||
"type": "button", | ||
"selector": ".test", | ||
"failSilently": true | ||
} | ||
] | ||
} | ||
} | ||
} | ||
|
15 changes: 15 additions & 0 deletions
15
...ted/integration-test/test-pages/broker-protection/actions/click-nonexistent-selector.json
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,15 @@ | ||
{ | ||
"state": { | ||
"action": { | ||
"actionType": "click", | ||
"id": "1", | ||
"elements": [ | ||
{ | ||
"type": "button", | ||
"selector": ".test" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
|
20 changes: 20 additions & 0 deletions
20
injected/integration-test/test-pages/broker-protection/pages/clicks.html
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,20 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width"> | ||
<title>Broker Protection</title> | ||
</head> | ||
<body> | ||
<div class="result"> | ||
<div class="name">John Doe</div> | ||
<div class="age">32</div> | ||
<div class="locations" data-id="1"> | ||
<span>New York, NY</span> | ||
<span>Los Angeles, CA</span> | ||
<a href="#" class="view-more">View More</a> | ||
</div> | ||
<button disabled class="btn">View More</button> | ||
</div> | ||
</body> | ||
</html> |
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