当前位置:   article > 正文

python selenium find_element_by_xpath().send_keys()报错find_element ‘dict‘ object has no attribute_dict' object has no attribute 'xpath' 怎么解决

dict' object has no attribute 'xpath' 怎么解决

DevTools listening on ws://127.0.0.1:53473/devtools/browser/8ef5d587-7e18-455f-90b4-a42cbb3ae83f
[1101/173838.874:ERROR:gl_surface_egl.cc(537)] EGL Driver message (Critical) eglInitialize: No available renderers.
[1101/173838.878:ERROR:gl_surface_egl.cc(949)] eglInitialize D3D9 failed with error EGL_NOT_INITIALIZED
[1101/173838.881:ERROR:gl_initializer_win.cc(196)] GLSurfaceEGL::InitializeOneOff failed.
[1101/173838.897:ERROR:viz_main_impl.cc(184)] Exiting GPU process due to errors during initialization
[1101/173840.240:ERROR:command_buffer_proxy_impl.cc(105)] ContextResult::kTransientFailure: Shared memory region is not valid

由于find_element方法返回了一个dict类型,不是webdriver对象,所有不能调用send_keys方法

解决方案:

重新安装一个88版本的chrom浏览器解决。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/凡人多烦事01/article/detail/587310
推荐阅读
相关标签
  

闽ICP备14008679号