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

您的位置:軟件測試 > 開源軟件測試 > 開源功能測試工具 > Selenium
輕松自動化---selenium-webdriver(python) (十五)
作者:網(wǎng)絡轉(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
主站蜘蛛池模板: 亚洲日产综合欧美一区二区 | 免费动漫无遮挡曰批视频软件 | 精品国产一区二区在线观看 | 亚洲人成在线播放网站岛国 | 中文字幕在线视频免费 | 亚洲成人网在线 | 欧美精品综合 | 一级女性全黄生活片免费看 | 日韩污| freexxxxⅹhd18日本| 亚洲xxxx动漫 | 人人成人免费公开视频 | 国产欧美日韩一区二区三区 | 亚洲欧美日韩国产精品影院 | 日本三级全黄三级三级三级口周 | 亚洲综合色视频在线观看 | 九九性视频 | free女厕所vedio中国 | 国产aaa级一级毛片 国产aaa三级 | 中国特级黄色片 | 久操视频免费 | 久草青青草 | 日韩高清欧美精品亚洲 | 一级做a爰片性色毛片思念网 | 国产精品资源在线观看网站 | 亚洲最大成人 | 热综合一本伊人久久精品 | 欧美日韩国产人成在线观看 | 欧美日韩精品高清一区二区 | 成人免费在线视频网 | 美女被cao免费看在线看网站 | 丝袜美女在线播放 | 亚洲无线乱码高清在线观看一区 | 4虎影视国产在线观看精品 4k岛国精品午夜高清在线观看 | 久久成人国产精品 | 黄 色 三 级 网站 | 欧美在线视频你懂的 | 九九成人 | 午夜大片在线观看 | 亚洲国产成人在线视频 | 欧美日韩亚洲一区二区 |