get window coordinates selenium

Solutions on MaxInterview for get window coordinates selenium by the best coders in the world

showing results for - "get window coordinates selenium"
Roberto
12 Aug 2019
1#Get the current location of your browser 
2browser_location = driver.get_window_position()
3# eg: {'y': 127, 'x': 15}
4
5# Set the absolute position of your Web element here (top-left corner)
6element_location = (element.location["x"]+ browser_location["x"],
7                    element.location["y"]+ browser_location["y"])
8
similar questions
queries leading to this page
get window coordinates selenium