Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions examples/javascript/test/browser/safariSpecificCap.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,23 @@ describe('Should be able to Test Command line arguments', function () {
await driver.get('https://www.selenium.dev/selenium/web/blank.html');
await driver.quit();
});
});

describe('Should be able to enable Safari logging', function () {
this.timeout(15000);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why we need timeout in here ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And i don't think this is the right example , Can you check again!

(process.platform === 'darwin' ? it : it.skip)('enableLogs', async function () {
const options = new safari.Options()
.setLoggingPrefs({ browser: 'ALL' }); // Enable browser-level logging

let driver = new Builder()
.forBrowser(Browser.SAFARI)
.setSafariOptions(options)
.build();

try {
await driver.get('https://www.selenium.dev/');
} finally {
await driver.quit();
}
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ Property value: `"true"` or `"false"`
{{< gh-codeblock path="examples/ruby/spec/browsers/safari_spec.rb#L20" >}}
{{< /tab >}}
{{< tab header="JavaScript" >}}
{{< badge-code >}}
{{< gh-codeblock path="/examples/javascript/test/browser/safariSpecificCap.spec.js#L22" >}}
{{< /tab >}}
{{< tab header="Kotlin" >}}
{{< badge-code >}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ Property value: `"true"` or `"false"`
{{< gh-codeblock path="examples/ruby/spec/browsers/safari_spec.rb#L20" >}}
{{< /tab >}}
{{< tab header="JavaScript" >}}
{{< badge-code >}}
{{< gh-codeblock path="/examples/javascript/test/browser/safariSpecificCap.spec.js#L22" >}}
{{< /tab >}}
{{< tab header="Kotlin" >}}
{{< badge-code >}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ Property value: `"true"` or `"false"`
{{< gh-codeblock path="examples/ruby/spec/browsers/safari_spec.rb#L20" >}}
{{< /tab >}}
{{< tab header="JavaScript" >}}
{{< badge-code >}}
{{< gh-codeblock path="/examples/javascript/test/browser/safariSpecificCap.spec.js#L22" >}}
{{< /tab >}}
{{< tab header="Kotlin" >}}
{{< badge-code >}}
Expand Down
Loading