Jacobvu84 / selenium-vietnam-training-course

Questions Tracking
7 stars 5 forks source link

Tìm xpath của đối tượng chỉ khi kích chuột mới hiển thị ra #47

Open NTHang opened 6 years ago

NTHang commented 6 years ago

Hi all Em đang muốn tìm xpath của 1 đối tượng nhưng nó chỉ hiện thị khi em nhấn chuột vào đó. Bài em đang học trên: https://www.guru99.com/handling-date-time-picker-using-selenium.html Trang em đang dùng: https://demos.telerik.com/kendo-ui/datetimepicker/index image

ACE hướng dẫn em cách nào để tìm ra xpath của nó ạ.

minhbd3 commented 5 years ago

you can use JavascriptExecutor, for example document.getElementById("PickupDate").value = "1/7/2018" and PickupDate is the @id of date time picker element in this case