📅  最后修改于: 2022-03-11 14:46:35.182000             🧑  作者: Mango
#Get the current location of your browser
browser_location = driver.get_window_position()
# eg: {'y': 127, 'x': 15}
# Set the absolute position of your Web element here (top-left corner)
element_location = (element.location["x"]+ browser_location["x"],
element.location["y"]+ browser_location["y"])