I'm trying to grab the value of a TD with no ID but the TR has a class. The other issue is there are multiple tables on the same page, also with no ID. Please see below:
I need to get the value for Machine ID and Total Memory that is underlined in the screenshot above
Here's what I tried:
browser.switch_to.default_content()
frames = browser.find_elements_by_tag_name('frame')
browser.switch_to.frame(frames[1])
value1 = browser.find_element_by_xpath(("//tr[@class='staticProp']/td[1]")).get_attribute("value")
value2 = browser.find_element_by_xpath(("//tr[@class='staticProp']/td[2]")).get_attribute("value")
value3 = browser.find_element_by_xpath(("//tr[@class='staticProp']/td[3]")).get_attribute("value")
value4 = browser.find_element_by_xpath(("//tr[@class='staticProp']/td[4]")).get_attribute("value")
value5 = browser.find_element_by_xpath(("//tr[@class='staticProp']/td[5]")).get_attribute("value")
print(value1)
print(value2)
print(value3)
print(value4)
print(value5)
But I get none as the results.
Any help is greatly appreciated.
UPDATE
Here's an additional screenshot. Is the : the problem?
Thanks,