clear using send_keys() does not work in certain scenarios, added a chec...

...k to see if the text clears using send_keys, and if not then use clear()