I am trying to select a table
values from div
element using selenium
,
When I inspect the element, I could see the element contains the table
but I cannot find it while viewing the source code (which is happening while trying to access through selenium).
During Inspect:
Below is the code I tried,
totals = driver.find_element_by_id("totals")#gets the totals div element. Only one is there
labels=totals.find_elements_by_class_name("hasLabel")#should get the table rows, but it was empty
print(len(labels))#returned 0
But, It was empty (as I saw in the source code). I need to export those values in a file as part of automation
Is there any other way I can extract those due values?.