0

this is html code and structure

I get 2 words but it returns a blank list, so I used the WebDriverWait function but I still have an error

I saw all the possible options on the internet but could not fix it

How fix??

this is code --->

from selenium import webdriver
import time
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC # available since 2.26.0

driver=webdriver.Chrome(executable_path="D:\chromedriverr\chromedriver.exe")
driver.get("https://bankofgeorgia.ge/ka/currencies")
teams = WebDriverWait(driver, 10).until(EC.presence_of_all_elements_located((By.XPATH, '//*[@id="tabs"]/bog-universal-tabs//div/iron-pages/div[1]/bog-currencies-list//div/div[2]/div/div/div[2]/div[3]')))
print([i.text for i in teams])

driver.close()
driver.quit()
kokiwebaaa
  • 127
  • 1
  • 10

0 Answers0