I need help to correct this excerpt. The excerpt is not working right now. I have attached the screen shot here.
//h3[text()='Alert Expiration']/..//table[contains(@class,'vdl-calendar__grid') and contains(@role,'grid')]
I need help to correct this excerpt. The excerpt is not working right now. I have attached the screen shot here.
//h3[text()='Alert Expiration']/..//table[contains(@class,'vdl-calendar__grid') and contains(@role,'grid')]
Looks like you have a problem to get the right identifier for the object.
You can use following xpath:
//div[@class="alert-expiration"]/descendant::div[contains(@class,"vld-date-time-picker")]/descendant::table
construction with descendants would be more stable.