Skip to content

Commit

Permalink
testdriver.js accessibility test: add error message
Browse files Browse the repository at this point in the history
  • Loading branch information
spectranaut authored and Ms2ger committed Jul 4, 2024
1 parent 999e57b commit 157c754
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions resources/testdriver.js
Original file line number Diff line number Diff line change
Expand Up @@ -1100,6 +1100,14 @@
throw new Error("get_named_cookie() is not implemented by testdriver-vendor.js");
},

async get_computed_role(element) {
throw new Error("get_computed_role is a testdriver.js function which cannot be run in this context.");
},

async get_computed_name(element) {
throw new Error("get_computed_name is a testdriver.js function which cannot be run in this context.");
},

async send_keys(element, keys) {
if (this.in_automation) {
throw new Error("send_keys() is not implemented by testdriver-vendor.js");
Expand Down

0 comments on commit 157c754

Please sign in to comment.