Skip to content

Commit

Permalink
Add stopSampling call for chrome.
Browse files Browse the repository at this point in the history
  • Loading branch information
gmierz committed Sep 3, 2024
1 parent a01b256 commit e4c3472
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/chrome/webdriver/chromium.js
Original file line number Diff line number Diff line change
Expand Up @@ -489,8 +489,12 @@ export class Chromium {
await unlink(netlog);
}

if (this.android && this.options.androidPower) {
await this.android.stopPowerTesting();
if (this.android) {
if (this.options.androidPower) {
await this.android.stopPowerTesting();
} else if (this.options.androidUsbPower) {
await usbPowerProfiler.stopSampling();
}
}

if (this.cdpClient) {
Expand Down

0 comments on commit e4c3472

Please sign in to comment.