I have the below html mark-up I am trying to access and click via python... for some reason copying the xpath and doing this is not working:
self.driver.find_element(By.XPATH, '//*`[@id="isc_8D"]/table/tbody/tr/td/table/tbody/tr/td[2]/img')`
It seems the 'name' attribute is the only unique identifier below; how could I WAIT for it to exist first, then find element by name attribute and click in python? i.e. name="isc_NXicon"
<img src="http://website:8080/DBWEBSITE/ui/sc/skins/Enterprise/images/TabSet/close.png" width="12" height="12" align="absmiddle" style="vertical-align:middle" name="isc_NXicon" eventpart="icon" border="0" suppress="TRUE" draggable="true">
I am doing the below via different element with CSS selector: But How could I do the same via html 'name attribute' for my current relevant mark-up?
WebDriverWait(self.driver, 15).until(EC.visibility_of_element_located((By.CSS_SELECTOR, ".btn.btn-mini.btn-primary"))).click()