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

"Not Now"-Notification #6

Open
AaronPhilipp opened this issue Apr 10, 2023 · 1 comment
Open

"Not Now"-Notification #6

AaronPhilipp opened this issue Apr 10, 2023 · 1 comment

Comments

@AaronPhilipp
Copy link

Hi Mariya,

at first thank you for this great input, discovered you on YouTube.

Since I have no experience with Selenium I just tried to copy your code and tried to use it for my purposes. Unfortunately it seems that Instagram changed their source code a little bit, so that certain things don't work. In my case I can't find the "Not Now"-Element for Password Saving. It seems that this is no "normal" button. Be patient with me as I am fairly new to Selenium.

@AaronPhilipp
Copy link
Author

After long research I finally found a solution which works for me:

For the 'Save Password' Notification:
not_now = driver.find_element(By.XPATH, "//div[@role = 'button']")

For the Push Messages Notification:
not_now2 = driver.find_element(By.XPATH, '//button[normalize-space()="Not Now"]')

In the first codeline I'm unsure which button is used, the 'Not Now' or the 'Save Information'...

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

No branches or pull requests

1 participant