How to get coordinates of a web element using Python Selenium?

0 votes
How to get coordinates of a web element using Python Selenium?
Jul 29 in Selenium by Ushma
24 views

1 answer to this question.

0 votes

Hey Ushma, you can use following code snippet to understand how to get coordinates of a web element:

driver = webdriver.Firefox()
element = driver.find_element_by_xpath("//xpath")
location = element.location
print(location)
answered Jul 29 by Abha
• 19,130 points

Related Questions In Selenium

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Installing Selenium Webdriver with Python package

Hey Hemant, for installing Selenium Webdriver with ...READ MORE

answered May 8 in Selenium by Anvi
• 11,690 points
108 views
0 votes
1 answer

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,050 points
406 views
0 votes
1 answer
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,130 points
762 views
0 votes
1 answer
0 votes
1 answer