I am using Selenium to test a web site. The Web site has a date field, which opens a popup when I click, from which I can choose the date.
My problem is that I want to select a particular date using Selenium IDE or Selenus. I have tried various methods, but in addition to specifying a date manually to the field in the Selenie's script, it has not been able to get the right solution or to solve it. I am using Java to implement the test case.
An example may be examined by going to any airline's site and clicking on the date field for departure. The popup that comes up, I want to capture it on a date can be a future date or current date.
You have to apply some code that navigates to the calendar next to the calendar's appearance for the desired date next You may need to navigate in the month or year, so you need the code that will determine what needs to be done and then follow the necessary events for the selenium.
We have the same work in our tests and we either choose today's date or end by entering a date in the field. We have also created a code which is a date on the calendar Would be allowed to choose because we did this only because we needed to test the calendar widget and we were the widget authors, so we knew how it was made. However, as a result many codes have been written
Comments
Post a Comment