[issue35407] Datetime function with selenium

2018-12-04 Thread Steven D'Aprano
Steven D'Aprano added the comment: This is for reporting bugs in the Python interpreter and standard library, not for asking for help with bugs in your own code. The code you show contains a syntax error (some of the indentation is wrong) and at least one undefined variable, "new". The

[issue35407] Datetime function with selenium

2018-12-04 Thread Sameer Joshi
Sameer Joshi added the comment: I have defined 2 variables , 1 for Friday and other for rest of weekdays. However when I match these two with the website date(which is 'today - 3' for Monday and 'today -1' )it shows the error as variable not defined. Below is code for the same. import

[issue35407] Datetime function with selenium

2018-12-04 Thread Sameer Joshi
New submission from Sameer Joshi : I have defined 2 variables , 1 for Friday and other for rest of weekdays. However when I match these two with the website date(which is 'today - 3' for Monday and 'today -1' )it shows the error as variable not defined. Below is code for the same. import