Skip to content

Commit

Permalink
Fix Bitbucket.org PR selectors (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
filiptronicek authored Dec 7, 2024
1 parent a6bce83 commit ba0a94b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/button/button-contributions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -410,9 +410,9 @@ export const buttonContributions: ButtonContributionParams[] = [
exampleUrls: [
// "https://bitbucket.org/efftinge/browser-extension-test/pull-requests/1"
],
selector: 'xpath://*[@id="main"]/div/div/div[1]/div/div/div[1]/div/div[2]/div/div[2]/div/div', // grandparent div of the "Request changes" and "Approve" buttons
selector: 'xpath://*[@id="main"]/div/div/div[1]/div/div/div/div[1]/div/div[2]/div/div[2]/div/div', // grandparent div of the "Request changes" and "Approve" buttons
containerElement: createElement("div", {}),
insertBefore: 'xpath:(//*[@id="main"]/div/div/div[1]/div/div/div[1]/div/div[2]/div/div[2]/div/div/div)[last()]', // note the [last()] to insert before the last child (the kebab menu)
insertBefore: 'xpath:(//*[@id="main"]/div/div/div[1]/div/div/div/div[1]/div/div[2]/div/div[2]/div/div/div)[last()]', // note the [last()] to insert before the last child (the kebab menu)
application: "bitbucket",
},
{
Expand Down

0 comments on commit ba0a94b

Please sign in to comment.