亚洲好骚综合-亚洲黄色录像-亚洲黄色网址-亚洲黄色网址大全-99久久99久久-99久久99久久精品国产

您的位置:軟件測試 > 開源軟件測試 > 開源功能測試工具 > Selenium
輕松自動化---selenium-webdriver(python) (十五)
作者:網(wǎng)絡(luò)轉(zhuǎn)載 發(fā)布時間:[ 2013/9/16 10:22:36 ] 推薦標(biāo)簽:

  ActionChains 類不僅僅是只包含了上面的三個方法,下面將方法列出:

  class ActionChains(driver)

driver:The WebDriver instance which performs user actions.
Generate user actions. All actions are stored in the ActionChains object. Call perform() to fire stored actions.
– perform()
Performs all stored actions.
– click(on_element=None)
Clicks an element.
on_element:The element to click. If None, clicks on current mouse position.
– click_and_hold(on_element)
Holds down the left mouse button on an element.
on_element:The element to mouse down. If None, clicks on current mouse position.
– context_click(on_element)
Performs a context-click (right click) on an element.
on_element:The element to context-click. If None, clicks on current mouse position.
– double_click(on_element)
Double-clicks an element.
on_element:The element to double-click. If None, clicks on current mouse position.
– drag_and_drop(source, target)
Holds down the left mouse button on the source element, then moves to the target element and releases the mouse button.
source:The element to mouse down.
target: The element to mouse up.
– key_down(key, element=None)
Sends a key press only, without releasing it. Should only be used with modifier keys (Control, Alt andShift).
key:The modifier key to send. Values are defined in Keys class.
element:The element to send keys. If None, sends a key to current focused element.
– key_up(key, element=None)
Releases a modifier key.
key:The modifier key to send. Values are defined in Keys class.
element:The element to send keys. If None, sends a key to current focused element.
– move_by_offset(xoffset, yoffset)
Moving the mouse to an offset from current mouse position.
xoffset:X offset to move to.yoffset:Y offset to move to.
– move_to_element(to_element)
Moving the mouse to the middle of an element.
to_element: The element to move to.
– move_to_element_with_offset(to_element, xoffset, yoffset)
Move the mouse by an offset of the specificed element. Offsets are relative to the top-left corner of the
element.
to_element: The element to move to.xoffset:X offset to move to.yoffset:Y offset to move to.
– release(on_element)
Releasing a held mouse button.
on_element:The element to mouse up.
– send_keys(*keys_to_send)
Sends keys to current focused element.
keys_to_send:The keys to send.
– send_keys_to_element(self, element,*keys_to_send):
Sends keys to an element.
element:The element to send keys.keys_to_send:The keys to send.

相關(guān)鏈接:
上一頁123下一頁
軟件測試工具 | 聯(lián)系我們 | 投訴建議 | 誠聘英才 | 申請使用列表 | 網(wǎng)站地圖
滬ICP備07036474 2003-2017 版權(quán)所有 上海澤眾軟件科技有限公司 Shanghai ZeZhong Software Co.,Ltd
主站蜘蛛池模板: 国产精品日本一区二区不卡视频 | 一区二区三区视频在线播放 | 午夜久久网 | 人人做人人爽人人爱秋霞影视 | 91精品人成在线观看 | 德国free性video极品 | 免费看黄网站在线 | 欧美激情精品久久久久久不卡 | 日韩在线免费视频观看 | 国产香蕉一本大道 | 日本道综合一本久久久88 | 色色免费 | 天天射日日干 | 亚洲欧美另类在线视频 | 国产一级高清视频免费看 | 欧美97| 欧洲做视频在线观看 | 夜夜爽夜夜叫夜夜高潮漏水 | 456亚洲人成在线播放网站 | 欧美成人免费草草影院视频 | 免费看国产精品久久久久 | 欧美日b视频| 日韩不卡中文字幕 | 精品欧美日韩一区二区三区 | 久久精品视频8 | 亚洲精品视频在线免费 | 久久99精品免费视频 | 久久99国产亚洲高清观看首页 | 亚洲伦理在线 | 日韩美女一级毛片a | 日韩中文字幕在线视频 | 亚洲一级黄色 | 国产精品亚洲精品日韩已满 | 国产黄色精品 | 国产haodiaose最新 | 奇米影视亚洲狠狠色777不卡 | 五月婷婷视频 | 黄色精品在线 | 成人网址在线观看 | 特级一级黄色片 | 天天尻逼|