How can you scroll to a particular element on a web page in pytest?
Hello Charity,
You need to use the below command to scroll to a particular element on a web page in pytest:
driver.execute_script("window.scrollTo(0, Y)")
How can you scroll to a particular element on a web page in pytest?
Hello Charity,
You need to use the below command to scroll to a particular element on a web page in pytest:
driver.execute_script("window.scrollTo(0, Y)")