Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Oppiskele Iterate Over Website and Click | Selenium Project
Selenium Project
course content

Kurssisisältö

Selenium Project

book
Iterate Over Website and Click

driver.find_elements() is a method in the selenium library for Python that is used to locate one or more web elements on a web page. When a Python script calls driver.find_elements(by, value), selenium will search for elements on the web page that match the specified by and value parameters and return a list of all matching elements.

Tehtävä

Swipe to start coding

  1. Iterate over the length of "a" attributes in the webpage and print their text;
  2. Click on the 7-th element to access a specific project.

Ratkaisu

Mark tasks as Completed
Switch to desktopVaihda työpöytään todellista harjoitusta vartenJatka siitä, missä olet käyttämällä jotakin alla olevista vaihtoehdoista
Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 1. Luku 7
AVAILABLE TO ULTIMATE ONLY
Pahoittelemme, että jotain meni pieleen. Mitä tapahtui?
some-alt