How to verify date format using selenium
How can I verify that a date displayed on the web page fits 开发者_C百科a particular format with Python bindings for Selenium-RC?
I would grab the date (using whatever selector is appropriate), then try to parse it with Python's strftime
. If the parser raises an exception the date is likely incorrect.
精彩评论