I would like to extract the bio of a guy Herbert W. Gullquist. It is from "Manager Timeline" after clicking on his name ("Gullquist is chief investment officer and a general partner with Lazard Asset Management...") from this web page: https://www.morningstar.com/funds/xnas/lziex/people
The code couldn't find the guy. Was it because the code clicked on the wrong place?
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
options = webdriver.ChromeOptions()
options.add_argument("start-maximized")
options.add_experimental_option("excludeSwitches", ["enable-automation"])
options.add_experimental_option('useAutomationExtension', False)
driver = webdriver.Chrome(options=options)
driver.get("https://www.morningstar.com/funds/xnas/lziex/people")
WebDriverWait(driver, 20).until(EC.element_to_be_clickable((By.XPATH, "//div[@class='sal-component-ctn sal-component-manager-timeline-chart']//text[text()='Gullquist']/.."))).click()
print(WebDriverWait(driver, 20).until(EC.visibility_of_element_located((By.CSS_SELECTOR, "div.sal-modal-biography.ng-binding.ng-scope"))).text.strip())
In addition, what if I want everyone's bio (9 people in total) from the Manager Timeline instead of a certain person? Any help is much appreciated.