Perform actions in vba selenium right-click any place in the webpage

I am trying to simulate the actions of right-click at any place in the page (not specific element) and arrow down twice and then press enter

With driver
    .Wait 2000
    .Actions.ClickContext
    .SendKeys .Keys.ArrowDown
    .SendKeys .Keys.ArrowDown
    .SendKeys .Keys.Enter
    .Actions.Perform
    .Wait 2000
End With

I am not sure how to do that in general. I am using vba and selenium.

Playing around I could display the right-click menu using this .Actions.ClickContext(.FindElementByXPath("//body")).Perform but couldn’t click on Inspect from the menu

Read more here: Source link