Katalon Studio v5.8 - It's time for the all-new API testing experience
Mukul jain
Katalon Apprentice
05/16/2018

Inspect element

Hi all,

I want to click 'f12' after i open a browser to inspect a element?? 
Upvote
Quote

Comments

  • Vinh Nguyen
    Katalon Moderator
    05/16/2018
    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))
    Upvote
    Quote
  • Mukul jain
    Katalon Apprentice
    05/16/2018
    edited May 16
    Thanx for the response but it isn't opening the inspect element....page is blank.
    Upvote
    Quote
  • Mukul jain
    Katalon Apprentice
    05/16/2018
    or can u please xplain how i will do mobile website testing in katalon than i don't have to do inspect element????
    Upvote
    Quote
  • Ty Crabtree
    Katalon Apprentice
    09/27/2018
    Did anyone find a solution to this, sending keys doesn't open the inspect element section. 
    Upvote
    Quote
  • Trong Bui
    Katalon Moderator
    09/28/2018
    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.
    Upvote
    Quote
  • Ty Crabtree
    Katalon Apprentice
    09/28/2018
    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?
    Upvote
    Quote
  • Trong Bui
    Katalon Moderator
    10/02/2018
    So, it meant that you could do it MANUALLY, and could not with the SEND KEYS?
    Upvote
    Quote
Sign In or Register to comment.