Skip to main content

Crate iceyee_webdriver

Crate iceyee_webdriver 

Source

Functions§

add_cookie
添加单个cookie.
chrome
启动chrome浏览器,主要用于linux.
edge
启动edge浏览器,主要用于windows.
get_cookie
@return $0用于http请求头cookie, $1用浏览器控制台直接写入cookie.
get_element
使用css选择器取得单个元素.
has_element
判断css选择器匹配的元素是否存在.
set_cookie
先清空所有旧cookie,然后添加新的cookie.
wait_element
等待元素出现.
wait_ready
等待页面加载完毕.
wait_url
等待URL变化.