Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

Commit

Permalink
commit test service.
Browse files Browse the repository at this point in the history
  • Loading branch information
yuderekyu committed Jan 27, 2021
1 parent 298588b commit 4584a74
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
class TestService {
constructor(options = {}) {
this.serviceOptions = options;
}

afterCommand(commandName, _args, _result, error) {
if ((commandName === 'url' || commandName === 'refresh') && !error) {
browser.execute(function test() {
console.log('[wdio-test-service] test function');
});
}
}
}

module.exports = TestService;

0 comments on commit 4584a74

Please sign in to comment.