Am automating things using Selenium. Need your help to handle Dynamic Xpath as below:
Driver.findElement(By.xpath(\"//[@id=\'INQ_2985\']/div[2]/tr/td/div/div[3
you can try using contains() or starts-with() in xpath,
above xpath can be rewritten as follows,
Driver.findElement(By.xpath("//*[starts-with(@id,'INQ')]/div[2]/tr/td/div/div[3]/div")).click();
if you can post more of your html, we can help improve your xpath..
for example,if a "new table data or div" is added to the UI, above xpath will no longer be valid
cssSelectors over xpath