Im trying to scrape some websites, but sometimes theres some that do not contain a button that the Code look for with findElement
. So when the Code doesn't find what im looking for, it gives me the following error:
Selenium message:no such element: Unable to locate element: {"method":"link text","selector":"see more"}
(Session info: chrome=104.0.5112.79)
For documentation on this error, please visit: https://www.seleniumhq.org/exceptions/no_such_element.html
Build info: version: '4.0.0-alpha-2', revision: 'f148142cf8', time: '2019-07-01T21:30:10'
System info: host: '192.168.1.12', ip: 'fe80:0:0:0:4c4:faba:fe32:b5f4%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '12.5', java.version: '1.8.0_341'
Driver info: driver.version: unknown
I tried using findElements but after that its supposed to click the Element, so not possible with that function.
Any workaround?