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

Getting below error while executing robotframework simple script with click link.

AttributeError: ‘WebDriver’ object has no attribute ‘find_elements_by_xpath’

Below are the libraries I have installed

I think its due to version mismatch, but not able find it.

Upgrade your SeleniumLibrary:

pip install -U robotframework-seleniumlibrary
1 Like

Thanks
I upgrade it, it worked
but now the keyword auto suggestion is not working.


this is a earlier image i attched here.

here it is


no keyword auto suggestion is coming

now please help me to solved another problem.

Sorry, I only use RIDE to edit test cases.

1 Like

how i can install RIDE.?
any link, documentation…etc…
offline/online installer

RIDE’s readme page has the install instructions, in most cases pip install -U robotframework-ride

Dave.

1 Like

Try Installing plugin ‘Robot framework Language Server’
I was facing the same issue. after adding this plugin, i was able to solve the issue.
Hope this helps.

image

Hi @vinayrana,

I’m a little puzzled by your answer, it seems to be for VSCode not RIDE?

Dave.

Hey @damies13 ,
It is for pycharm.
I was replying to the original issue where i think OP is using Pycharm.

1 Like

Hi @vinayrana,

Ah I see, I got confused as he’d asked about RIDE later in the thread. :+1:

Dave.