Inspect element

Hi all,

I want to click ‘f12’ after i open a browser to inspect a element??

F12 is actually a key, so you should use ‘Send Keys’ keyword, e.g:

import org.openqa.selenium.Keys as Keys
WebUI.sendKeys(findTestObject(null), Keys.chord(Keys.F12))

Thanx for the response but it isn’t opening the inspect element…page is blank.

or can u please xplain how i will do mobile website testing in katalon than i don’t have to do inspect element???

Did anyone find a solution to this, sending keys doesn’t open the inspect element section.

I think you could try a quick verification:
- Load the browser by automation script (by Katalon).
- Try to open the inspect manually with “F12” there

Since the browser opened by selenium is bit different than the actual browser, we need to ensure it works with manual mode.

I have, along with many others, have attempted to use the send keys command to pull up the inspect element page. It seems that this doesn’t work for anyone. Is there a better solution?

So, it meant that you could do it MANUALLY, and could not with the SEND KEYS?

I have the same problem, is there a solution?

F12 is not the right key, that one will just open DevelopperTools.
check here for the right shortcut:

however note that you still have to select the element to be inspected somehow (move the mouse over it)