Automate dropdown or select element using Selenium python library

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 ก.ย. 2024

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

  • @deborahregina5176
    @deborahregina5176 3 ปีที่แล้ว +1

    I'm a beginner in Python and your video helped me a lot! Thank you!

  • @kimochineina1
    @kimochineina1 3 ปีที่แล้ว

    Good stuff

  • @shabisan
    @shabisan 3 ปีที่แล้ว

    Hi. a quick question please regarding getting all the options from drop down:
    what are the code lines I have to write if I want to create a list with all the values instead of printing them?

    • @qavbox
      @qavbox  3 ปีที่แล้ว +1

      KeepOptions
      for option in options:
      KeepOptions.append(option.text)
      print(KeepOptions)
      Here KeepOptions is a list and you will be appending the option.text which are the item names
      Try n let me know how this goes!

    • @shabisan
      @shabisan 3 ปีที่แล้ว

      @@qavbox thank you for the prompt reply. You are the best 😘

  • @adilalikhan1432
    @adilalikhan1432 3 ปีที่แล้ว

    Hi Sir
    when i use
    for i in op:
    print(i.text)
    an empty space is getting printed in the output.
    Also getting element not interactable exception when i use select_by_visible_text.
    Please help
    Thanks,
    adil

    • @qavbox
      @qavbox  3 ปีที่แล้ว

      Are you using same code and url as mentioned in video?