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

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

  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
主站蜘蛛池模板: 亚洲欧美日韩综合久久久久 | 亚洲已满18点击进入在线观看 | 欧美午夜艳片欧美精品 | 国产成人禁片免费观看视频 | 日本a级片在线观看 | 中文字幕第98页小明免费 | 午夜激情在线 | 奇米伊人 | 99久久国产综合精品麻豆 | 一级毛片免费全部播放 | 黄色小视频在线播放 | 欧美xxxxx18| 一区二区在线视频观看 | 成人午夜视频免费看欧美 | 日日操夜夜操天天操 | 高清视频黄色录像免费 | 在线免费毛片 | 欧美特黄一级视频 | 在线国产视频一区 | 日本午夜影院 | 免费中文字幕 | 日本福利在线 | 9久热这里只有精品视频在线观看 | 欧美精品亚洲精品日韩专区 | 国产黄色a三级三级三级 | 黄色观看 | 亚洲伊人成综合人影院小说 | 香蕉视频免费版 | 日韩欧美视频 | 一级特黄aa大片免费 | 天天摸夜夜 | 国产激情视频一区二区三区 | 国产不卡一区二区三区免费视 | 欧美性猛交ⅹxxx乱大交禽 | 男女男在线观看视频网站 | 亚洲精品午夜级久久久久 | 日韩毛片在线观看 | 黄网站色在线视频免费观看 | aⅴ在线免费观看 | 亚洲视频中文字幕在线观看 | 欧美日韩一区二区三区在线播放 |