Closed matthkv closed 4 months ago
Hey, this question is related to the DrissionPage Library. You can visit the documantation page of it and find a lot of information. It is different but easier than Selenium conventions. I highly recommend to use the DrissionPage library.
Basic examples:
#Find the element by id
element1= webdriver.ele('#this_is_my_id')
#Find the element by class
ele2 = webdriver.ele('.this_is_my_class')
#Find the element by text
ele3 = webdriver.ele('Submit')
ele3.click()
You can find further information on the documentation.
How do I perform webscraping, such as searching and editing items by ID, Name and XPath? I tried the conventional ways that WebDrive uses, but I was unsuccessful