Хочу получить ссылку но выдает какую-то рандомною. Вот код:
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from webdriver_manager.chrome import ChromeDriverManager
from selenium.webdriver.chrome.options import Options
from time import sleep
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
selector = '#content > div > div.container > div > div.layout-swap.layout-swap-disabled > div.with-tbl-footer > div > div.tc.table-hover.table-clickable.tc-short.showcase-table.tc-lazyload.tc-sortable > a:nth-child(2) > div.tc-desc'
browser = webdriver.Chrome(ChromeDriverManager().install())
browser.get('https://funpay.com/lots/83/')
browser.execute_script("window.scrollTo(0, document.body.scrollHeight);")
find_input = browser.find_element(By.NAME, 'desc') # Find the search box
find_input.send_keys('4 lvl' + Keys.RETURN)
find_button = browser.find_element(By.CSS_SELECTOR, "#content > div > div.container > div > div.layout-swap.layout-swap-disabled > div.with-tbl-footer > div > div.tc.table-hover.table-clickable.tc-short.showcase-table.tc-lazyload.tc-sortable > div > div.tc-price.sort")
find_button.click()
sleep(5)
i = browser.find_element(By.CSS_SELECTOR, '#content > div > div.container > div > div.layout-swap.layout-swap-disabled > div.with-tbl-footer > div > div.tc.table-hover.table-clickable.tc-short.showcase-table.tc-lazyload.tc-sortable > a:nth-child(2)')
print(i.get_attribute('href'))