Issue: AttributeError: 'WebDriver' object has no attribute 'find_elements_by_xpath'

Hi all, I am having the following problem: AttributeError: ‘WebDriver’ object has no attribute ‘find_elements_by_xpath’. Currently, I am using the following versions:
requests 2.24.0
robotframework 3.0.4
robotframework-archivelibrary 0.4.0
robotframework-excel 1.0.0b4
robotframework-excellib 2.0.0
robotframework-jsonlibrary 0.3
robotframework-pabot 0.51
robotframework-pythonlibcore 4.1.2
robotframework-requests 0.4.7
robotframework-seleniumlibrary 3.3.1
robotframework-stacktrace 0.4.1
robotframework-stringformat 0.1.7
robotframeworklexer 1.1
robotremoteserver 1.1
selenium 4.9.1

Hi Toan,

I’ve not seen this error myself, but I’ll try to help.

  • Which keyword gave you this error?
  • Also, just to confirm, when you get this error are you using a keyword from SeleniumLibrary or AppiumLibrary?
    • For now I’ll assume SeleniumLibrary, as these next questions relate to SeleniumLibrary.
  • Which browser are you using? and what version?
  • What’s the version of the web driver for your browser?
  • Did you use webdrivermanager to install your web driver?

Can you show the rest or the information around this error from the robot log?
Can you show the affected test case/robot file?

The more information you give us about your issue the more help we can be.


1 Like

thank you @damies13 , i fixed it, due to conflict between library versions

1 Like