0

I need to extract the list of list located in the attribute "value" of the code but when I did it, its not extracted as a list, so I cannot finde the elements inside them.

this is my code to extract it:

try:

    tabla = WebDriverWait(driver, 10).until(
        EC.presence_of_element_located((By.NAME, "GridContainerDataV"))).get_attribute("value")
    if isinstance(tabla, list):
        print("your object is a list !")
    else:
        print("your object is not a list")

this code prints out that is not a list. How can I extract or convert this in a list in order to be able to find elements?

Here is the script in the webpage

<input type="hidden" name="GridContainerDataV" value="[["7131090","Arvejas, Enteras Verdes","400","",""],["71311099","Arvejas, Enteras Azules","520","abril/2021"."mayo/2021"],["71311100","lo que sea","720","junio/2021"."diciembre/2021"],...

Once I can convert this in a list, I need to find in every list the element "7131090" and print out the elements in index 2 3 and 4 of the list.

thanks in advance

0 Answers0