c mo recorrer una lista en un desplegable

+1 vote

Jun 1, 2020 in Selenium by Nieves
• 130 points

recategorized Jun 1, 2020 by Gitika 301 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, 2020 by Sirajul
• 58,990 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,520 points
4,579 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,010 points
5,442 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,890 points
3,278 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 2, 2020 in Selenium by Sri
• 3,010 points
3,858 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,090 points
103 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
• 58,990 points
174 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,870 points
50 views