Is it possible to locate element by partial id match in Selenium

后端 未结 5 979
旧巷少年郎
旧巷少年郎 2020-11-28 08:36

I am trying to locate elements with generated ids wherein some part of the ID is known; for example:

id=\"page_x002e_x0023_default-create-firstname\"
         


        
5条回答
  •  自闭症患者
    2020-11-28 09:02

    This works with selenium vba

     .FindElementsByXPath( "//*[contains(@class, 'unique-string')]" )
    

提交回复
热议问题