How to take CSS Selector/Xpath using regular expression in Selenium?

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 พ.ย. 2022
  • In this video will see how to take CSS Selector/Xpath using regular expression in Selenium. We need to take regular expression when attribute values are so long or partially change every time. In that case we need to do unique partial match for values with the help of regular expressions.
    I hope you like this video. For any questions, suggestions or appreciation please contact us at: programmerworld.co/contact/ or email at: programmerworld1990@gmail.com
    Details:
    programmerworld.co/selenium/h...
    Code:
    Xpath = //h1[contains(@class,'entry')]
    CSS Selector = h1[class*='entry']

ความคิดเห็น • 3

  • @bbss9295
    @bbss9295 6 หลายเดือนก่อน

    How to get this window where your are writing css code in Browser console?

    • @sameershetye9228
      @sameershetye9228 3 หลายเดือนก่อน

      use chropath

    • @AbhishekKumar-hl6zj
      @AbhishekKumar-hl6zj 2 หลายเดือนก่อน

      Please don’t use chropath or tools, in realtime many company don’t allow third party tools