Python 爬虫,找不到指定的元素咋办

代码运行别的都正常,网页也能打开,但是找这个元素的时候始终找不到:


contain1 = driver.find_element_by_xpath("//*[@class='results-item-header']")

img


期望找到2J4W,希望大家帮帮我
注:class='results-item-header的元素不止一个,但是一个也显示不出来,不知道是什么原因

from selenium import webdriver
import xlwt
import random
import time
import re
driver = webdriver.Chrome(r'C:\Program Files\Google\Chrome\Application\chromedriver.exe')
for i in range(2):
    time.sleep(random.uniform(1, 2))
    url = 'balabala'
    driver.get(url)
    contain1 = driver.find_element_by_xpath("//*[@class='container']")
    ListOfContain1 = re.split("[\n:]", contain1.text)
    print(ListOfContain1)

这个class看着像是页面加载完后,通过js修改的