jeudi 2 juillet 2020

Selenium python: select/click a random button on a page

I was trying to automate 'add to cart' function on samsung's website but I need to select a different product each time running the test. so far I could locate a specific product's button/element's on the website and couldn't randomize the process I need some help, thank you.

This is the website I want to choose a random product.

https://www.samsung.com/us/search/searchMain/?listType=g&searchTerm=S20




Aucun commentaire:

Enregistrer un commentaire