c mo recorrer una lista en un desplegable

+1 vote

Jun 2, 2020 in Selenium by Nieves
• 130 points

recategorized Jun 2, 2020 by Gitika 2,482 views
Hola @Nieves, ¿podrías por favor elaborar un poco más en tu consulta? ¿Estás usando Java? python?

1 answer to this question.

0 votes

Puede obtener una lista de todas las opciones usando select.options. Entonces puede seleccionar opciones usando el índice.

select = Select(driver.find_element_by_id("dropDown"))
options = select.options
for index in range(0, len(options) - 1):
    select.select_by_index(index)
    # do stuff

¡Espero que esto ayude!

answered Jun 2, 2020 by Sirajul
• 59,230 points

Related Questions In Selenium

0 votes
2 answers

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,500 points
13,490 views
0 votes
2 answers

Problem while using InternetExplorerDriver in Selenium WebDriver

enable trusted connection  in internet explorer by ...READ MORE

answered Aug 31, 2020 in Selenium by Sri
• 3,190 points
9,030 views
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,910 points
7,145 views
0 votes
2 answers

How to use such xpath to find web elements

xpath are two types. 1) Absolute XPath:    /html/b ...READ MORE

answered Sep 3, 2020 in Selenium by Sri
• 3,190 points
7,816 views
–1 vote
1 answer

File is available at HDFS location. Still system throws en error.

This is happening because the file name ...READ MORE

answered Jan 2, 2019 in Big Data Hadoop by Omkar
• 69,230 points
430 views
+1 vote
1 answer

que subcomando de excel se puede usar para leer el contenido de la celda especificada en la hoja de calculo activa?

Contiene encabezado le permite recuperar / recuperar ...READ MORE

answered May 8, 2020 in RPA by Sirajul
• 59,230 points
710 views
0 votes
1 answer

El return solo me devuelve False en este método

Hola amiga como estas La función no devuelve ...READ MORE

answered Oct 19, 2020 in Python by Gitika
• 65,890 points
452 views
0 votes
0 answers

jQuery/AJAX – Staring and un-starring

I would like to be able to ...READ MORE

Jul 28, 2022 in Web Development by gaurav
• 23,260 points
298 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP