开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜