Skip to content

Commit 7b16b0b

Browse files
authored
Update locators
pomo w wyszukiwaniu css i xpath
1 parent ab57d1e commit 7b16b0b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

locators

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,7 @@ time.sleep(2)
2525
dropdown = Select(driver.find_element(By.ID,"exampleFormControlSelect1"))
2626
dropdown.select_by_visible_text("Female")
2727
dropdown.select_by_index(0)
28+
29+
pomoc w wyszukiwaniu elementów w konsoli:
30+
document.querySelectorAll('.nazwa-klasy') - daje mi wszystkie elementy które to spełniają
31+
document.querySelector('.nazwa-klasy') - daje mi 1 element na stronie jaki znajdzie

0 commit comments

Comments
 (0)