This error message...
AttributeError : "dict' object has no attribute 'text'
...implies that find_element_by_xpath()
is returning a dict
type of object which is a bit unexpected and something is wrong somewhere within your code.
Deep Dive
This error started showing up recently in some of the usecases:

where as @titusfortner
mentions find_element()
was returning JSON Wire Protocol signature for elements instead of a w3c response from the driver.
This issue can be reproduced with w3c
set as False
as follows:
options.add_experimental_option('w3c', False)
Recomendations
In such cases, it is recommended:
- Not to set
w3c
at all and go as per the default configurations.
- Do not use the
desired_capabilities
key
- Avoid bypassing the sandbox security unless you got a specific usecase to do so.
However, it is also important to ensure that: