Quality Testing

Quality is delighting customers

Selenium Testers can anyone guide me to click on date "29" in below html code

It can be  through xpath or css locators,But xpath would be more appreciated. 

<div id="ui-datepicker-div" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all ui-helper-hidden-accessible" style="xg-p: absolute; top: 411px; left: 383.217px; display: block;">
<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix ui-corner-all">
<table class="ui-datepicker-calendar">
<thead>
<tbody>
<tr>
<tr>
<tr>
<tr>
<tr>
<td class=" ui-datepicker-week-end " onclick="DP_jQuery.datepicker._selectDay('#tempVar4',1,2012, this);return false;">
<td class=" " onclick="DP_jQuery.datepicker._selectDay('#tempVar4',1,2012, this);return false;">
<td class=" " onclick="DP_jQuery.datepicker._selectDay('#tempVar4',1,2012, this);return false;">
<td class=" " onclick="DP_jQuery.datepicker._selectDay('#tempVar4',1,2012, this);return false;">
<a class="ui-state-default" href="#">29</a>

Thanks in advance,

Views: 187

Reply to This

Replies to This Discussion

xpath=//table[@class='ui-datepicker-calendar']//a[.='29']

Thank you for response,but unfortunately not working for me

Is there any way?

its working for me , try this //table[@class='ui-datepicker-calendar']//a[@class='ui-state-default']

Thanks a lot

hi these are all possiblities to find the date

link=29

(or

//a[@class='ui-state-default']

(or)

//div[@id='ui-datepicker-div']/div/table/thead/tbody/tr[5]/td[4]/a

Ok thank you

RSS

TTWT Magazine

Advertisement

You Can


Call for Articles

Advertisement

Videos

  • Add Videos
  • View All

Badge

Loading…

© 2012   Created by Quality Testing.

Badges  |  Report an Issue  |  Terms of Service