Inspect element


#1

Hi all,

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


#2

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))

#3

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


#4

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


#5

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


#6

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.


#7

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?


#8

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