0

我正在使用量子框架并使用 BDD 进行应用程序自动化。我需要验证应用程序上的徽标和图标,但我无法通过对象间谍找到这些对象的标识符。

这是我的功能和 .loc 文件,其中图像验证失败并出现以下错误。

@sucessfulllogin    
Scenario: login to member mobile app with a Tier 2 member  
   Given I start application by name "SIT1 BCBSM"  
   And I wait for "5" seconds  
   Then I should see image "logo"   
   Then I click on "edit.Username"  
   And I enter "myusername1" to "edit.Username"  
   Then I click on "edit.Password"  
   And I enter "anything" to "edit.Password"  
   Then I click on "button.Go"  
   And I wait for "30" seconds  
   And I close application by name "app1" 

定位器:

edit.Username = xpath=//*[@value="Username"]  
edit.Password = xpath=//*[@value="Password"]  
button.Go = xpath=//*[@label="Go"]  
logo = //*[@class="logo"] 
4

0 回答 0