Html:
<div class="xxxx">
<a href="ooooo.pdf"></a>
</div>
Python selenium code trials:
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
print(wait.until(EC.element_to_be_clickable((By.CSS_SELECTOR, "div.xxxx a"))).get_attribute('href'))
Output:
aaaaa.pdf
How print ooooo.pdf
and aaaaa.pdf
?
I want to print more links, what should I do?