Skip to content

Commit

Permalink
do not need this try/catch
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexKamaev committed Nov 17, 2023
1 parent 12e4767 commit 9a87d98
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/browser/provider/built-in/dedicated/chrome/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,14 +195,7 @@ export default {
async dispatchNativeAutomationEvent (browserId, type, options) {
const cdpClient = await this._getActiveCDPClient(browserId);

// NOTE: TODO
try {
await dispatchNativeAutomationEvent(cdpClient, type, options);
}
catch (err) {
// NOTE: research if should rethrow the error here
chromeBrowserProviderLogger('catch error in the Native Automation `%s` action ', type);
}
await dispatchNativeAutomationEvent(cdpClient, type, options);
},

async dispatchNativeAutomationEventSequence (browserId, eventSequence) {
Expand Down

0 comments on commit 9a87d98

Please sign in to comment.