- sailatha
- Posts : 6
Join date : 2011-06-25
selenium RC
Sat Jun 25, 2011 7:53 pm
how to sort date using selenium rc
can any one help me
can any one help me
- ArthurActive particpant
- Posts : 23
Join date : 2011-05-23
Location : Pune
Re: selenium RC
Mon Jun 27, 2011 1:14 pm
Please give details such which language, how the sort must be, date format etc.
sailatha wrote:how to sort date using selenium rc
can any one help me
- sailatha
- Posts : 6
Join date : 2011-06-25
Re: selenium RC
Thu Jun 30, 2011 12:15 am
Hi,
The language is JAVA. Sort can be Ascending or Descending and Date format should be MM/DD/YYYY.
Thanks in advance.
regards
Sailatha
The language is JAVA. Sort can be Ascending or Descending and Date format should be MM/DD/YYYY.
Thanks in advance.
regards
Sailatha
- ArthurActive particpant
- Posts : 23
Join date : 2011-05-23
Location : Pune
Re: selenium RC
Thu Jun 30, 2011 5:57 pm
Hi,
You can use the following method:
1. convert the date into string
SimpleDateFormat dateformatMMDDYYYY = new SimpleDateFormat("MMddyyyy");
StringBuilder nowMMDDYYYY = new StringBuilder( dateformatMMDDYYYY.format( dateNow ) );
2. split the things such as mm, dd, yyyy.
3. Use sort method (array.sort(sortNumber))
also you can see the site is it helpful to you
http://javascript.about.com/b/2010/04/02/date-array-sort.htm
http://javascript.about.com/library/blsort3.htm
http://javascript.internet.com/forms/date-sorter.html
You can use the following method:
1. convert the date into string
SimpleDateFormat dateformatMMDDYYYY = new SimpleDateFormat("MMddyyyy");
StringBuilder nowMMDDYYYY = new StringBuilder( dateformatMMDDYYYY.format( dateNow ) );
2. split the things such as mm, dd, yyyy.
3. Use sort method (array.sort(sortNumber))
also you can see the site is it helpful to you
http://javascript.about.com/b/2010/04/02/date-array-sort.htm
http://javascript.about.com/library/blsort3.htm
http://javascript.internet.com/forms/date-sorter.html
- Can Selenium do image comparison tests; support mobile browsers; and other FAQs about Selenium
- What is the use of Selenium Core and Selenium Test Manager ? (N-Unit Procedures in VS 2010)
- Creating detail log for selenium command execution (Selenium RC Java client)?
- [Help] Problem of running selenium Testcase[Java Junit] with Selenium RC
- Display 'Selenium Functional test Runner' when run selenium RC
Permissions in this forum:
You cannot reply to topics in this forum