Jump to content

WebDriver - Get <html>


Go to solution Solved by SOLVE-SMART,

Recommended Posts

Posted (edited)

Say I wanna get the html after the browser did it's thing as in:
image.png.7e187fd35555b1e468d0bfea768c4b30.png

when you "inspect element" and get to see the whole html after it run all the JS in it. Not the source but, the DOM is it called ( in the orange rectangle ) ?

I need that via WebDriver. Thanks.

Edited by argumentum

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

  • Solution
Posted

Hi @argumentum ๐Ÿ‘‹ ,

I hope I get you right: you "simply" want to get the page source after the navigation to the target url https://www.autoitscript.com/autoit3/docs/functions/MsgBox.htm and after the loading is done, right?

If you just need a direction, you can have a look into wd_core.au3 > _WD_GetSource.
In case you need a reproduceable example I also could provide it (later this day).

Best regards
Sven

==> AutoIt related: ๐Ÿ”— GitHub, ๐Ÿ”— Discord Server, ๐Ÿ”— Cheat Sheet

  Reveal hidden contents
Posted (edited)

Ohhhh I see, I guess it's important for you to get the source after all is finished (loading), because I can see a diff regarding the result between InetGet() and _WD_GetSource().

๐Ÿ‘‰ InetGet() or_INetGetSource()

  Reveal hidden contents

๐Ÿ‘‰ _WD_GetSource()

  Reveal hidden contents

Maybe this already helps you?

Best regards
Sven

Edited by SOLVE-SMART

==> AutoIt related: ๐Ÿ”— GitHub, ๐Ÿ”— Discord Server, ๐Ÿ”— Cheat Sheet

  Reveal hidden contents
Posted
  On 5/16/2024 at 12:07 PM, Andreik said:

_INetGetSource() doesn't work?

Expand  

Bet it does. But I need to interact with a site and fake a user working in it. Nowadays the source loads a boatload of JS scripts and that is the page instead of the html in the source.
Welcome to the future :lol: 

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
ร—
ร—
  • Create New...