How i need to click DatePicker tab

How i need to click the new datePicker tab, while i am clicking the “Date Picker Tab”, It was opening in new window. If i click any date, it should be updated in textbox.

Please tell , how i need to write the code for this type things

sumalatha Default Asked on March 10, 2015 in Selenium WebDriver.
Add Comment
1 Answer(s)

Since there is no html u have posted so all I can give approach

1. First determine u r date pop up is window or its inside a frame
e.g. Switch to frame : driver.switchTo().frame(driver.findElement(By.xpath(“//iframe[@ng-hide=’showVerificationScreen’]”)));
Switch to window :  http://www.toolsqa.com/selenium-webdriver/switch-commands/
2. Select date
3. Switch back to original window/frame

amitjain Supporter Answered on March 10, 2015.

Hi amit.
Good Morning. i am Suma.  RE: How i need to click  DatePicker tab

Please see my Pic , u will get some idea. i am able to open the date window. but i am unable to click the date. becoz, if i click the date. it have to be automatically update in textbox

on March 12, 2015.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.