hejazizo / us-visa-rescheduler

US Visa Rescheduler Python Script
Other
47 stars 9 forks source link

Getting error while running the script #3

Closed mehranagh20 closed 1 year ago

mehranagh20 commented 1 year ago

Hi @hejazizo! I get the following error while running the script: NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"//*[@id="header"]/nav/div[2]/div[1]/ul/li[3]/a"}

Maybe they have changed some elements in their website? Any suggestions?

sarathbp commented 1 year ago

Ok.

knight1368 commented 1 year ago

Hi @hejazizo! I get the following error while running the script: NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"//*[@id="header"]/nav/div[2]/div[1]/ul/li[3]/a"}

Maybe they have changed some elements in their website? Any suggestions?

Have had the same problem since yesterday...

sarathbp commented 1 year ago

Is it due to the chrome update ?

Demarsch commented 1 year ago

Should be //*[@id="header"]/nav/div/div/div[2]/div[1]/ul/li[3]/a with latest page layout

hejazizo commented 1 year ago

Thanks @Demarsch. I updated the code base with your fix and it works. Next time you can also send a pull request and I'll merge it.

Jeetpal1 commented 5 months ago

Should be //*[@id="header"]/nav/div/div/div[2]/div[1]/ul/li[3]/a with latest page layout

Hey @Demarsch how did you find this? I am getting almost the same error but for the element class "down-arrow bounce", may be they updated it again. Could you guide? Or @hejazizo If you have an idea image

Error after Login Successful and Searching for available date: Message: no such element: Unable to locate element: {"method":"xpath","selector":"//a[@class="down-arrow bounce"]"} (Session info: chrome=123.0.6312.59) image

Demarsch commented 5 months ago

@Jeetpal1 , not sure what exactly going on. Judging by the logs on your screen you should reach the point of driver.find_element(by=By.ID, value='ui-datepicker-div') and not look for the down-arrow bounce

qlan3 commented 5 months ago

Hi, I got the same error. Any idea how to fix it?