How to get all links and all elements that are clickable on a page of system dynamically

0 votes
I need to get all the links and all clickable elements on a page in system. I manage to get the link using BeautifulSoap for my login page. But, when i enter the homepage, it only return the links from login page, but the links on homepage are ignored. For clickable element, i need approach that i can dynamically capture all clickable elements and click the element.
Aug 27, 2020 in Python by anonymous
• 120 points
1,541 views

1 answer to this question.

0 votes

Hello,

You can do it by using find_elements_by_xpath() driver method – Selenium Python or xpath + regex, or  HTML tags.

To know how to use  driver.find_elements_by_xpath() method in Selenium you can refer this docs

Hope it helps!!

Thank You!!

answered Aug 27, 2020 by Niroj
• 82,780 points

Related Questions In Python

+2 votes
3 answers

Write a for loop that prints all elements of a list and their position in the list. a = [4,7,3,2,5,9]

Try using this question by list comprehension: a=[4,7,3,2,5,9] print([x for ...READ MORE

answered Dec 8, 2019 in Python by vinaykumar
• 180 points
15,851 views
0 votes
0 answers
0 votes
2 answers

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,520 points
5,600 views
0 votes
2 answers

Problem while using InternetExplorerDriver in Selenium WebDriver

enable trusted connection  in internet explorer by ...READ MORE

answered Aug 31, 2020 in Selenium by Sri
• 3,100 points
6,192 views
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,890 points
3,843 views
0 votes
2 answers

How to use such xpath to find web elements

xpath are two types. 1) Absolute XPath:    /html/b ...READ MORE

answered Sep 2, 2020 in Selenium by Sri
• 3,100 points
4,738 views
0 votes
1 answer

How to find the value of a row in a csv file in python and print column and row of that value ?

Hello @Khanhh , Use panda to find the value of ...READ MORE

answered Oct 15, 2020 in Python by Niroj
• 82,780 points
2,448 views
0 votes
1 answer

How do I get the path and name of the file that is currently executing?

Hello @kartik, Since Python 3 is fairly mainstream, ...READ MORE

answered May 11, 2020 in Python by Niroj
• 82,780 points
552 views