1)調用js方法中的click方法
js = "var q=document.getElementById('mui').children[1].click()"
driver.execute_script(js)
2)send_keys 無效的問題常常是由於文本框的placeholder造成的
解決方法先用 .clear()清除文本框的placeholder,再用send_keys()填充內容,如果還不行就只能用execute_script了
1)調用js方法中的click方法
js = "var q=document.getElementById('mui').children[1].click()"
driver.execute_script(js)
2)send_keys 無效的問題常常是由於文本框的placeholder造成的
解決方法先用 .clear()清除文本框的placeholder,再用send_keys()填充內容,如果還不行就只能用execute_script了
https://github.com/ddean2009/blog-auto-publishing-tools
一. 二. 三. ! 作 者 : Yaopengfei(姚鵬飛) 博客地址 : http://www.cnblogs.com
ERROR Failed to compile with 1 error