I have two xpath
for select day: .//*[@id='calendar']//*[contains(@class,'fc-first fc-last')]/td[4]
for select time slot: .//*[@id='calendar']//*[contains(@class,'fc-agenda-slots')]/tbody/tr[3]/td
I need to concat both xpath and create a one and have to access a calendar slot with date & time.
I have attached my code in image format.
答案 0 :(得分:0)
You can use | (union operator)
.//*[@id='calendar']//*[contains(@class,'fc-first fc-last')]/td[4]|.//*[@id='calendar']//*[contains(@class,'fc-agenda-slots')]/tbody/tr[3]/td