cómo recorrer una lista en un desplegable

+1 vote

Jun 1 in Selenium by Nieves
• 130 points

recategorized Jun 1 by Gitika 85 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 1 by Sirajul
• 54,080 points

Related Questions In Selenium

0 votes
1 answer

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,510 points
2,873 views
0 votes
1 answer
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,890 points
2,225 views
0 votes
1 answer

How to use such xpath to find web elements

It's much simpler to use: #MyDiv123 > div.super or ...READ MORE

answered Jun 14, 2018 in Selenium by Samarpit
• 5,890 points
2,338 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,040 points
57 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 in RPA by Sirajul
• 54,080 points
108 views