samedi 20 mars 2021

How to test a script that relies on selenium?

I've reached that point in my Python learning where I've written a script that relies in part on using Selenium to scrape a website (for which Requests and BeautifulSoup are useless).

How, however, am I supposed to test these parts of my script?

Is there a particular library for this? Do I have to develop a fake website (!) ? Or does the fact that the script works make it unnecessary to test it?

PS: I understand that Selenium was initially developed for development purposes and not for webscrapping.

Aucun commentaire:

Enregistrer un commentaire