I have found this element via the code below:
def DoGetStartPostButton(browserChrome):
StartPostButton = None
nWaitSeconds = 5
Wait = WebDriverWait(browserChrome, nWaitSeconds)
strSelectorString = "//div[@role='button' and @tabindex='0']"
Wait.until(EC.presence_of_element_located((By.XPATH, strSelectorString)))
arrayElements = browserChrome.find_elements(By.XPATH, strSelectorString)
for Element in arrayElements:
strProperty = Element.get_attribute("id")
strProperty = Element.get_property("id")
if strProperty is None:
Element = Element
return StartPostButton
It does not matter whether I use get_attribute or get_property, I cannot get the value of any of those properties of ‘Element’ listed in the watch window.
'strProperty ’ is always an empty string in the watch window!
How do I get the value of those bloody properties/attributes???