I want to scrape Home team and Away team from this page https://www.flashscore.com/match/hY5c1Bhh/#match-summary/match-summary
# Get HomeTeam
_ht = driver.find_element_by_xpath('//*[contains(@class, "home")]')
ht = _ht.find_element_by_xpath('//*[contains(@class, "participantName")]')
_homeName = ht.text
# Get AwayTeam
_at = driver.find_element_by_xpath('//*[contains(@class, "away")]')
at = _at.find_element_by_xpath('//*[contains(@class, "participantName")]')
_awayName = at.text
Output
Longford
Longford
