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, 2019 in Selenium by Ushma
152 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, 2019 by Abha
• 27,760 points

Related Questions In Selenium

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

How to get all options of a dropdown using python selenium webdriver?

Hi Ankita, you can fetch all options ...READ MORE

answered Jul 31, 2019 in Selenium by Anvi
• 14,010 points
1,332 views
0 votes
1 answer

Installing Selenium Webdriver with Python package

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

answered May 8, 2019 in Selenium by Anvi
• 14,010 points
405 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,510 points
1,560 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,870 points
1,493 views
0 votes
1 answer
0 votes
1 answer

How to get all options of a dropdown on a webpage using Selenium Webdriver?

Hey Joel, you can use following lines ...READ MORE

answered Jul 15, 2019 in Selenium by Abha
• 27,760 points
206 views