Skip to content

Commit

Permalink
selenium-runner.js: New try to set permission manually
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelklehr committed Aug 2, 2023
1 parent 01b3216 commit a385a22
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/selenium-runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ installConsoleHandler()

// Get extension URL
await driver.get('about:debugging')
await new Promise(resolve => setTimeout(resolve, 10000))
await driver.sleep(10000)
testUrl = await driver.executeScript(function() {
const extension = WebExtensionPolicy.getActiveExtensions()
.find(({name}) => name === 'floccus bookmarks sync')
Expand All @@ -77,8 +77,9 @@ installConsoleHandler()
// Enable permission
await driver.get('about:addons')
await driver.sleep(10000)
console.log(await driver.getPageSource())
await driver.executeScript(function() {
document.querySelector('addon-card').click()
document.querySelector('.card.addon').click()
})
await driver.sleep(10000)
await driver.executeScript(function() {
Expand Down

0 comments on commit a385a22

Please sign in to comment.