Re: cPAMIE/Python String and Date Comparisons

2005-11-08 Thread RB
Here's an example: import cPAMIE import time from time import sleep search_txt = 'MSNBC Pairs Chung, Povich' date_txt = '8 November 2005' date_tuple = time.strptime(date_txt,'%d %B %Y') today_tuple = time.localtime() if date_tuple[:3] == today_tuple[:3]: print date_txt + ' is today\'s date

cPAMIE/Python String and Date Comparisons

2005-11-07 Thread Sam R
Hi, I am new to Python, and PAMIE has been a very useful tool for my website functionality testing. I was wondering if anyone knows how to do the following testcases with either PAMIE or Python. 1. Load a page http://www.prophet.net/quotes/stocknews.jsp?symbol=MSFT Verify that the string 'News for