Skip to content
Advertisement

How do I capture hidden data from a table with Selenium and Python?

my problem is the following:

The web page indicated in the script has a button (“Ver todo 50”) that displays the rest of the records of a table. I effectively click on the button with Selenium, but I can’t get the 50 records of the table but only the first 15 that the page initially displays.

Does anyone have an idea to collect the full logs (50)?

The script is:

JavaScript

Advertisement

Answer

I tried the below code, and the output was those 50 options.

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement