Home > other >  Selenium select visual reference database error text
Selenium select visual reference database error text

Time:11-16

HTML file
 & lt; Select id="nr" name="nr" & gt; 



 s=Select (driver. Find_element_by_id (" nr ")) 
S.s elect_by_visible_text (data. Xuanze)
An error
Raise NoSuchElementException (" Could not locate the element with the visible text: % s "% text)

What reason is this?

Data. The xuanze is variable from the data files under xuanze, the text content of reading the database field, he is "each page shows article 20"
  • Related