with an xpath returning the 2nd match from all results :
el = driver.find_element_by_xpath(
"(//div[contains(@class,'statsprogramsgridmodal')]//div[contains(@class,'ui-grid-icon-ok')])[2]")
with an xpath returning the 2nd child from the same level :
el = driver.find_element_by_xpath(
"//div[contains(@class,'statsprogramsgridmodal')]//div[contains(@class,'ui-grid-icon-ok')][2]")
or with an xpath returning multiple elements:
el = driver.find_elements_by_xpath(
"//div[contains(@class,'statsprogramsgridmodal')]//div[contains(@class,'ui-grid-icon-ok')]")[1]
or with a css selector returning multiple elements:
el = driver.find_elements_by_css_selector(
"div[class*='statsprogramsgridmodal'] div[class*='ui-grid-icon-ok']")[1]