手机号码的遮罩输入类型04__ __-__ ___- ___ __无法在遮罩输入下键入值

时间:2019-03-08 00:36:51

标签: java

这是我的物品库

enter image description here

如果检查此内容,则从何处显示  我已经提到xpath为

public static By txtMobileNumber=By.xpath("//input[@class='form-control input-field-phone-number validate maskedInput']");

Inspect element on web for identifiying the mobile number

以及我的实际脚本

import ObjectRepo.LeadCaptureFormPage;


import ObjectRepo.SubjectSelectionPage;
import WebDriverCommands.ActionsDrivers;
import config.StartBrowser;

import io.codearte.jfairy.Fairy;
import io.codearte.jfairy.producer.person.Person;
public class LeadCaptureForm extends StartBrowser {

  @Test
  public void Lead_Capture() throws InterruptedException, IOException, Exception {
      StartBrowser.childTest= StartBrowser.parentTest.createNode("Subject Lead Capture Form");
      ActionsDrivers aDriver = new ActionsDrivers();
      Fairy fairy = Fairy.create();
      Person person = fairy.person();

      aDriver.launchApplication("https://www.uat1.env.opendev.edu.au/");
      aDriver.type(HomePage.txtSearchField,"APC100","SubjectName");
      aDriver.click(HomePage.btnSearchIcon,"Search Icon");
      aDriver.click(SubjectSelectionPage.SelectSubjectName,"Select Subject");
      aDriver.type(LeadCaptureFormPage.txtFirstName,person.getFirstName(),"LeadName");
      aDriver.type(LeadCaptureFormPage.txtMobileNumber,person.getTelephoneNumber(),"MobileNumber");
      aDriver.type(LeadCaptureFormPage.txtEmail,person.getEmail(), "Email");
      aDriver.click(LeadCaptureFormPage.clickOkButton, "Ok");

但仍然无法选择moblie number字段输入值

0 个答案:

没有答案