$('[class="el-main"]').scrollBy(0,$('[class="el-main"]').scrollHeight)
you have to find the scroll element and then use scrolBY on that
driver.execute_script("$('[class="el-main"]').scrollBy(0,$('[class="el-main"]').scrollHeight);")
if you get $ not defined use:
driver.execute_script("arguments[0].scrollBy(0,arguments[0].scrollHeight);", driver.find_element_by_class_name('el-main'))
You can also do:
driver.get(url2)
driver.find_element_by_class_name('el-main').click()
driver.find_element_by_css_selector("body").send_keys(Keys.END)
FIrst you have to bring scroll to focus by clicking it and then send END key on body
finding locator:
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…