diff options
Diffstat (limited to 'qa/qa/page/file/shared/editor.rb')
-rw-r--r-- | qa/qa/page/file/shared/editor.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/qa/qa/page/file/shared/editor.rb b/qa/qa/page/file/shared/editor.rb index ce4465d2a5c..dab02c1e34f 100644 --- a/qa/qa/page/file/shared/editor.rb +++ b/qa/qa/page/file/shared/editor.rb @@ -20,7 +20,11 @@ module QA end def remove_content - text_area.send_keys([:command, 'a'], :backspace) + if page.driver.browser.capabilities.platform.include? "mac" + text_area.send_keys([:command, 'a'], :backspace) + else + text_area.send_keys([:control, 'a'], :backspace) + end end private |