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

update Xpaths in script #18

Open
TuanTool opened this issue Nov 28, 2023 · 1 comment
Open

update Xpaths in script #18

TuanTool opened this issue Nov 28, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@TuanTool
Copy link

Can you update Xpaths in script?

@TuanTool TuanTool added the bug Something isn't working label Nov 28, 2023
@TuanTool
Copy link
Author

I updated like that but it not right

Can you update again for me for right path

Skip the cookie banner

button_login = webdriver.find_element(By.XPATH, '/html/body/div[2]/div/div/div[2]/div/div/div/div/section/main/article/div[2]/div/div[2]/form/div/div[3]/button/div')
button_login.click()
sleep(3)

Setup credentials

account_name="vucongtuan2810" # Change this to your own Instagram username
account_password="Anhyeuem1" # Change this to your own Instagram password

Email & Password inputs

username = webdriver.find_element(By.XPATH, '/html/body/div[2]/div/div/div[2]/div/div/div/div/section/main/article/div[2]/div/div[2]/form/div/div/div/label/input')
username.send_keys(account_name)
password = webdriver.find_element(By.XPATH, '/html/body/div[2]/div/div/div[2]/div/div/div/div/section/main/article/div[2]/div/div[2]/form/div/div[2]/div/label/input')
password.send_keys(account_password)

Login

button_login = webdriver.find_element(By.XPATH, '//html/body/div[2]/div/div/div[2]/div/div/div/div/section/main/article/div[2]/div/div[2]/form/div/div[3]/button/div')
button_login.click()
sleep(3)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants