Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: leumi.ts multiple account #886

Merged
merged 1 commit into from
Nov 18, 2024
Merged

fix: leumi.ts multiple account #886

merged 1 commit into from
Nov 18, 2024

Conversation

Nic3Guy
Copy link
Contributor

@Nic3Guy Nic3Guy commented Nov 16, 2024

This PR commit a fix to Leumi scraper multiple account support.

The fix: When switching account using the xpath there was a missing /

Relevant issue:

This can clause the "Leumi" part of issue #820

More details on the fix:

For Leumi multi account the issue is due to missing / (backslash)
in lines 183-184
see here: https://github.com/eshaham/israeli-bank-scrapers/blob/cbbf9b7bb9915f51eee680042af0bcc19ad8c8ac/src/scrapers/leumi.ts#L183C3-L183C108

after the xpath there should be 3 backslashes
you can see the example from the Puppeteer documents:

// Same as ::-p-text("My text").
await page.locator('text/My text').click();
// Same as ::-p-xpath(//h2).
await page.locator('xpath///h2').click();
// Same as ::-p-aria(My label).
await page.locator('aria/My label').click();
await page.locator('pierce/div').click();

When switching account using the `xpath` there was a missing `/`
@baruchiro
Copy link
Collaborator

@dimdimi4 @idryzhov Can you please test this?

Please let us know if you have multiple accounts or not.

@Nic3Guy Nic3Guy changed the title Fix leumi.ts multiple account Fix: leumi.ts multiple account Nov 17, 2024
@michlus
Copy link

michlus commented Nov 17, 2024

@dimdimi4 @idryzhov Can you please test this?

Please let us know if you have multiple accounts or not.

I do have multiple accounts at Leumi.
but I don’t know how to test this fix, other than by running Caspion.
so once it’s released (within Caspion), I can validate that it fixes the issue

@idryzhov
Copy link
Contributor

Unfortunately I don't have multiple accounts so can't test this.

@baruchiro
Copy link
Collaborator

Unfortunately I don't have multiple accounts so can't test this.

@idryzhov at least test it is not breaking the current one-account flow...

@baruchiro baruchiro changed the title Fix: leumi.ts multiple account fix: leumi.ts multiple account Nov 18, 2024
@michlus
Copy link

michlus commented Nov 18, 2024 via email

Copy link
Collaborator

@baruchiro baruchiro left a comment

Choose a reason for hiding this comment

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

I tested it with @Nic3Guy and it works

@baruchiro baruchiro merged commit 5590eda into eshaham:master Nov 18, 2024
6 of 10 checks passed
Copy link

🎉 This PR is included in version 5.2.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants