Please tell me please, I can get the source code to an item on the page, for example a div?
Right-Click on the element in question. Choose “Inspect” or “Inspect element”. This will bring up the developer tools where you should be able to see the element in the HTML source.
thank you, but it’s not really what interests me
I want to know if there is any way to get this code in the test
Something like getPageSource () just for a particular item
just for an object
please much help me
You could use the innerHTML/outerHTML properties. But I don’t know how you intend using the source or how you intend getting it since for some reason you don’t seem to want to explain what you’re trying to do.
If you follow my advice earlier and visit the console, type $0.innerHTML and you’ll see the content of the element you selected.
Thanks, I’ve done it. I used innerHTML as you suggested