Need help to fill number into Chrome input box with Selenium

前端 未结 2 1285
终归单人心
终归单人心 2020-12-22 07:39

Hi I\'ve been trying to fill a number in an input box in Chrome (v 75.0.3770.142) using Selenium Basic ChromeDriver (v 75.0.3770.140) in Excel (2013) VBE I\'ve tried the bel

2条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-22 08:02

    finally figured out that it works with the div class also in front:

    obj.FindElementByXPath("//div[@class='form-group']/input[@class='form-control ng-pristine ng-untouched ng-invalid ng-invalid-required'and @id= 'cartPrdQtyBtn0']").SendKeys ("100000")
    

提交回复
热议问题