![]() I ended up going with nth-of-type which was my first time using it. Something it took me a little time to figure out was the CSS selector to explicitly target the element I was after. I didn’t have an problems with that, but I can see how it would be useful on a javascript heavy site. ![]() It can be used to deal with problems of async loads by waiting until an element appears on a page before performing an action. NOTE: This code is different from what was in the stream. find_element_by_css_selector ( ".linkedlist:nth-of-type(1) dt:nth-of-type(2) a:nth-of-type(1)" ) print (element. Firefox (options =options )Įlement = driver. options import Optionsĭriver = webdriver. #!/usr/bin/env python3 from selenium import webdriverįrom selenium.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |