Hello guys
I'm trying to click on a calendar, select a date and move forward, I can even select the month and year, but I can't click on the day button to move forward
here is the code i am using
Sub ExtrairTabelaDaPagina()
Dim driver As New ChromeDriver
With driver
.Start
.Get "BDI"
Application.Wait Now + TimeSerial(0, 0, 3)
.FindElementByXPath("/html/body/div/div/div[1]/div/div/div[2]/div[1]/duet-date-picker/div/div[1]/button").Click
Application.Wait Now + TimeSerial(0, 0, 1)
.FindElementByXPath("/html/body/div/div/div[1]/div/div/div[2]/div[1]/duet-date-picker/div/div[2]/div/div[2]/div[1]/div[1]/select").Click "janeiro"
Application.Wait Now + TimeSerial(0, 0, 1)
.FindElementByXPath("/html/body/div/div/div[1]/div/div/div[2]/div[1]/duet-date-picker/div/div[2]/div/div[2]/div[1]/div[2]/select").Click "2023"
Application.Wait Now + TimeSerial(0, 0, 1)
.FindElementByXPath("/html/body/div/div/div[1]/div/div/div[2]/div[1]/duet-date-picker/div/div[2]/div").Click "23"
End With
End Sub
I'm trying to click on a calendar, select a date and move forward, I can even select the month and year, but I can't click on the day button to move forward
here is the code i am using
Sub ExtrairTabelaDaPagina()
Dim driver As New ChromeDriver
With driver
.Start
.Get "BDI"
Application.Wait Now + TimeSerial(0, 0, 3)
.FindElementByXPath("/html/body/div/div/div[1]/div/div/div[2]/div[1]/duet-date-picker/div/div[1]/button").Click
Application.Wait Now + TimeSerial(0, 0, 1)
.FindElementByXPath("/html/body/div/div/div[1]/div/div/div[2]/div[1]/duet-date-picker/div/div[2]/div/div[2]/div[1]/div[1]/select").Click "janeiro"
Application.Wait Now + TimeSerial(0, 0, 1)
.FindElementByXPath("/html/body/div/div/div[1]/div/div/div[2]/div[1]/duet-date-picker/div/div[2]/div/div[2]/div[1]/div[2]/select").Click "2023"
Application.Wait Now + TimeSerial(0, 0, 1)
.FindElementByXPath("/html/body/div/div/div[1]/div/div/div[2]/div[1]/duet-date-picker/div/div[2]/div").Click "23"
End With
End Sub