Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» FlexMonkium Download Not available under Gorillalogic site
Thu Dec 08, 2016 5:40 pm by bhanu.praveen

» Selenium Script issue
Tue Dec 06, 2016 9:48 pm by njain213

» Difference between QTP, Selenium and Silk test
Tue Dec 06, 2016 7:58 pm by jessicacyrus1

» Where does selenium script pick browser from
Tue Dec 06, 2016 1:52 pm by janbaskt

» Safari throws an HTTP ERROR: 404
Tue Dec 06, 2016 1:51 pm by janbaskt

» Access Denied Error in Selenium RC
Tue Dec 06, 2016 1:51 pm by janbaskt

» Automating Flex application through selenium webdriver
Fri Dec 02, 2016 2:06 pm by abhinay.krs

» Starting with Selenium, what is Selenium?
Mon Nov 28, 2016 4:00 pm by Foma

» Getting started with Selenium
Mon Nov 28, 2016 3:23 pm by Rebbelx

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Date Picker in Webdriver?

View previous topic View next topic Go down

Date Picker in Webdriver?

Post by Koushik on Wed Nov 20, 2013 8:07 pm

Hi Friends,

I am new to WebDriver, I have an issue ... i.e how to pick the date from the date picker..?  iF anyone faced this kind of issue , plz post

Koushik

Posts : 3
Join date : 2013-11-20

Back to top Go down

Re: Date Picker in Webdriver?

Post by Koushik on Thu Nov 21, 2013 6:35 pm

Issue is Solved.... Very Happy

Koushik

Posts : 3
Join date : 2013-11-20

Back to top Go down

Re: Date Picker in Webdriver?

Post by Harinadh on Sat Nov 23, 2013 3:59 pm

Could you pls post the solution as well, so it will be useful for the users Smile

Harinadh

Posts : 2
Join date : 2013-11-23

Back to top Go down

Re: Date Picker in Webdriver?

Post by Koushik on Mon Nov 25, 2013 12:50 pm

This is the Solution for the date picker 

for(int i=3;i<=7;i++){    // rows

for(int j=1;j<7;j++) {  //columns
calDate = driver.findElement(By.xpath(".//*[@id='datepicker']/table/tbody/tr["+i+"]/td["+j+"]")).getText(); 

if(calDate.equals(date)) {  /// date we need to initialize like Sting date=25;
System.out.println("date is " +calDate);
driver.findElement(By.xpath(".//*[@id='datepicker']/table/tbody/tr["+i+"]/td["+j+"]")).click();

Koushik

Posts : 3
Join date : 2013-11-20

Back to top Go down

Re: Date Picker in Webdriver?

Post by nabhanya.varma on Mon Jan 26, 2015 10:18 am

Date picker code completely depends on the Calendar UI. There are Ajax, Jquery and simple HTML calendars.

When working with any Date picker, identifying locators is very important.

Now say there is a calendar which shows previous or next months dates in current month calendar. 

Need to click on current month date is important.

nabhanya.varma
Active particpant
Active particpant

Posts : 13
Join date : 2014-03-02

Back to top Go down

Re: Date Picker in Webdriver?

Post by Sponsored content Today at 1:50 pm


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum