Merge pull request #392 from MikeTheWatchGuy/Dev-latest

Used PopupError cfor bad element update
This commit is contained in:
MikeTheWatchGuy 2018-09-30 19:43:07 -04:00 committed by GitHub
commit 82a58400f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -2056,7 +2056,11 @@ class ErrorElement(Element):
return
def Update(self, *args, **kwargs):
Popup('Keyword error', self.Key, 'Hey duffus, you gave me a bad key and now you\'re trying to do an update.', 'You need to stop this madness and check your spelling')
PopupError('Keyword error',
'You need to stop this madness and check your spelling',
'Bad key = {}'.format(self.Key),
'Your bad line of code may resemble this:',
'window.FindElement("{}")'.format(self.Key))
return