Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the updraftplus domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/xeaerkkk/public_html/anteelo.com/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the better-wp-security domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/xeaerkkk/public_html/anteelo.com/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/xeaerkkk/public_html/anteelo.com/wp-includes/functions.php on line 6114

Deprecated: version_compare(): Passing null to parameter #2 ($version2) of type string is deprecated in /home/xeaerkkk/public_html/anteelo.com/wp-content/plugins/elementor/core/experiments/manager.php on line 132

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /home/xeaerkkk/public_html/anteelo.com/wp-content/plugins/elementor-pro/modules/loop-builder/module.php on line 200

Warning: Undefined array key "options" in /home/xeaerkkk/public_html/anteelo.com/wp-content/plugins/elementor-pro/modules/theme-builder/widgets/site-logo.php on line 194
#Mac Archives - anteelo

Mac OS- Using Protractor

If you are a QA Engineer then somewhere down the road you will come across Protractor/selenium and face limitations that come with automation. I faced a similar limitation when I had to copy a 7-page google document and paste it in my application to verify whether the formatting of the document is affected or not. So the problem here arises when we are working with mac OS.

Anteelo design - Mac OS- Using Protractor

macOS + Selenium/Protractor doesn’t allow native functions to be called, which in simple words means that you cannot perform either command +acommand + C, or command +v in mac.

OSX does not support native key events, so the Driver simulates all key presses. This means that the keypress is contained within the “content” window, so the browser probably never sees the COMMAND as it would from a native event.

So I had to find a workaround in order to conquer the wild elephants and I would be talking about the same in this blog

  • Cut: Shift+Delete
  • Copy: Ctrl+Insert
  • Paste: Shift+Insert
  • Select: SHIFT + Arrow_down

Select-All

`browser.actions().sendKeys(protractor.Key.chord(protractor.Key.SHIFT, protractor.Key.ARROW_DOWN)).perform();

Paste

`browser.actions().sendKeys(protractor.Key.chord(protractor.Key.SHIFT, protractor.Key.INSERT)).perform();}

Copy

`browser.actions().sendKeys(protractor.Key.chord(protractor.Key.CONTROL, protractor.Key.INSERT)).perform();

 

error: Content is protected !!