Write a method to read data from webtable for specific row and column index using selenium.
Question
Write a method to read data from webtable for specific row and column index using selenium.
Answer
def GetData(rowIndex,colIndex): tablerows=driver.find_element_by_id(""IdValue"").find_elements_by_tag_name(""tr"") tableDefinitons=tablerows[rowIndex+1].find_elements_by_tag_name(""td"") return tableDefinitons[colIndex].get_attribute(""innerText"")