-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possibly unintended pause #37
Comments
I found a possible second case where this occurs: def key_down(self, value, element=None, addDelayAfter=True):
if element is not None:
self.click(element)
self.actions.key_down(value)
if addDelayAfter:
self.actions.pause(std_positive(0.06, 0.035, 0.013)) # Specific version of addDelayAfterAction()
return self
def write_character(self, character):
special_characters = "!@#$%^&*()_+{}|:<>?"
if character.isupper() or character in special_characters:
self.actions.key_down("\ue008")
self.actions.pause(std_positive(0.06, 0.035, 0.005)) # Time after shift press
self.actions.key_down(character)
self.actions.pause(std_positive(0.06, 0.035, 0.013)) # Dwell time
self.actions.key_up(character)
if character.isupper() or character in special_characters:
self.actions.pause(std_positive(0.03, 0.015, 0.003)) # Time before shift release
self.actions.key_up("\ue008") In this function |
Great catch! You are correct in both cases.
Yes
Indeed. The argument |
Here is an overview of two function in
selenium_actions.py
. I believe there is an unintended pause in thewrite_sentence
function, claiming to pause between each character, where in fact it pauses after a word.However ther is already a pause after a word, namely, at the end of the
write_word
function.@droefs Am I correct to assume that the pause in
write_sentence
preceding the comment# Pauze between characters (within a word)
can be removed?The text was updated successfully, but these errors were encountered: