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
97 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
• 27,180 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
• 13,960 points
272 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,110 points
1,128 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,150 points
1,239 views
0 votes
1 answer
0 votes
1 answer