[英]Pass existing Webdriver object to custom Python library for Robot Framework
[英]How to write Python custom library for Robot Framework for “doubleclick” and “find icon and type <some text>”?
我正在創建Robot Framework自定義庫來執行以下步驟:
STEP 1 : click("firefox_icon.png")
STEP 2 : find("email_id.png"), and type("test@gmail.com")
STEP 3 : find("passwd.png"), and type( "test@123")
STEP 4 : doubleClick("signin.png")
以下是test.robot文件的內容:
***Settings***
Library calc.Calculator WITH NAME Calculator
***Test Cases***
Click Firefox Icon
clickFirefoxIcon
誰能指導我如何編寫以下功能的庫:
提前致謝。
更新:我們可以使用Selenium2 Lib實現此目的。
為什么不使用Selenium 2庫來做您想做的事情?
讓Web驅動程序為您打開Firefox。
並且您具有用於查找用戶和密碼字段的關鍵字。
只是尋找Selenium 2庫登錄示例
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.