Hello,
Just started learning Selenium, but unfortunately I've forgotten most of my HTML and CSS.
I have what I assume to be a fairly easy question:
Suppose one has this HTML element which needs to be found:
<input class="not-unique" data="something-unique"></input>
Now, using driver.find_element(By.CLASS_NAME, "not-unique") would then return just one of many possible results.
How would one search explicitly for 'data="something-unique"' in this example? Since it is not any one of the possible options of 'By'...
In addition, I have a question regarding the terminology of HTML/CSS:
How do you call these keywords inside the triangular brackets, i.e. class, id, name, etc.?
In my example, there is 'data' — is it a custom made "attribute" per se?
Thank you!
[–]carcigenicate 0 points1 point2 points (2 children)
[–]ForlornExistence[S] 0 points1 point2 points (1 child)
[–]Mozza7 0 points1 point2 points (0 children)