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

Unknown elements #18

Open
Gregorio-Sanchez opened this issue May 1, 2024 · 0 comments
Open

Unknown elements #18

Gregorio-Sanchez opened this issue May 1, 2024 · 0 comments

Comments

@Gregorio-Sanchez
Copy link

I am trying to update Xpatht but dont know which elements are you trying to find in lines 62, 66, 68 and 72

Thanks in advance.

            letter = self.driver.find_element(By.CSS_SELECTOR, 'div.css-1nxi1g2:nth-child(1) > h2:nth-child(1)').text
            if int(letter) > 0:
                print(str(letter) + " are available")
                try:
                    self.driver.find_element(By.CSS_SELECTOR, 'div.css-uirvwh:nth-child(2) > ul:nth-child(1) > div:nth-child(1) > a:nth-child(1) > div:nth-child(1)').click()
                    time.sleep(3)
                    self.driver.find_element(By.CSS_SELECTOR, '.css-1aros5x').click()
                except NoSuchElementException:
                    print("")
                try:
                    self.driver.find_element(By.XPATH, '/html/body/div/div[3]/div[3]/div/a[1]/div').click()
                    time.sleep(3)
                    self.driver.find_element(By.CSS_SELECTOR, 'div.css-uirvwh:nth-child(2) > ul:nth-child(1) > div:nth-child(1) > a:nth-child(1) > div:nth-child(1)').click()
                    time.sleep(3)
                    self.driver.find_element(By.CSS_SELECTOR, '.css-1aros5x').click()
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