18 January 2026:


This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.



Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.

Trying to activate the keyboard shortcut in firefox (mac) for the view page source option

pistolpetepistolpete Members
edited June 2014 in Sahi - Open Source
Hi All,

I'm having issues with the following basic scenario.
I want sahi (free) to open the view page source option in Firefox on my Mac.
I have tried the following:

_keyPress(document.body, 'u', "CMD");

and it gives me:

undefined

Any ideas ?
Reason I am doing this is that I want to search for a particular piece of code within a certain page, so once I have found out how to view page source I can assert if that code is there or not.

Cheers in advanced

Pistolpete
Sign In or Register to comment.