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?
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!
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
I'm a beginner in Python and your video helped me a lot! Thank you!
Good stuff
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?
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!
@@qavbox thank you for the prompt reply. You are the best 😘
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
Are you using same code and url as mentioned in video?