Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Equivalent to right-click 'inspect element' in iOS simulator Safari?

When developing a web app using ionic, it is very useful to run up the program in iOS simulator with the command line

ionic run ios -l -c -s --target="iPhone-5s"

Then by selecting desktop Safari and Develop -> iOS Simulator you can bring up the Web Inspector for the app on the simulator. All well and good.

On desktop Safari, it is very useful to right-click on an element to find it in the Web Inspector. Is there a way to do this in iOS Simulator Safari ?

I end up putting a searchable string into the HTML and Ctrl-F to find it which is more cumbersome.

like image 525
Nick T Avatar asked Nov 15 '25 18:11

Nick T


1 Answers

There is a target button in the web inspector window that can select an element inside the iOS Simulator. Here's a screenshot:

"Select Element" button in Web Inspector

like image 181
Jacob Beltran Avatar answered Nov 18 '25 12:11

Jacob Beltran



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!