argumentum Posted May 16, 2024 Posted May 16, 2024 (edited) Say I wanna get the html after the browser did it's thing as in: 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 May 16, 2024 by argumentum Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting.
Solution SOLVE-SMART Posted May 16, 2024 Solution Posted May 16, 2024 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 Stay innovative! Spoiler 🌍 Au3Forums 🎲 AutoIt (en) Cheat Sheet 📊 AutoIt limits/defaults 💎 Code Katas: [...] (comming soon) 🎭 Collection of GitHub users with AutoIt projects 🐞 False-Positives 🔮 Me on GitHub 💬 Opinion about new forum sub category 📑 UDF wiki list ✂ VSCode-AutoItSnippets 📑 WebDriver FAQs 👨🏫 WebDriver Tutorial (coming soon)
SOLVE-SMART Posted May 16, 2024 Posted May 16, 2024 (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() Spoiler expandcollapse popup<!DOCTYPE html> <html> <head> <title>Function MsgBox</title> <meta charset="utf-8"> <link href="../css/default.css" rel="stylesheet"> </head> <body> <h1 class="small">Function Reference</h1> <hr style="height:0px"> <h1>MsgBox</h1> <p class="funcdesc">Displays a simple message box with optional timeout.<br /></p> <p class="codeheader"> MsgBox ( flag, "title", "text" [, timeout = 0 [, hwnd]] )<br /> </p> <h2>Parameters</h2> <table> <tr> <td style="width:15%">flag</td> <td style="width:85%">The flag indicates the type of message box and the possible button combinations. See remarks.</td> </tr> <tr> <td>title</td> <td>The title of the message box.</td> </tr> <tr> <td>text</td> <td>The text of the message box.</td> </tr> <tr> <td>timeout</td> <td><strong>[optional]</strong> Timeout in seconds. After the timeout has elapsed the message box will close automatically. The default is 0, which is no timeout.</td> </tr> <tr> <td>hwnd</td> <td><strong>[optional]</strong> The window handle to use as the parent for this dialog.</td> </tr> </table> <h2>Return Value</h2> <table class="noborder"> <tr> <td style="width:10%" class="valign-top">Success:</td> <td style="width:90%">the ID of the button pressed.</td> </tr> <tr> <td class="valign-top">Failure:</td> <td>$IDTIMEOUT (-1) if the message box timed out.</td> </tr> </table><br /> <br /><br /> <table> <tr> <td style="width:15%"><strong>Button Pressed</strong></td> <td style="width:85%"><strong>Return Value </strong></td> </tr> <tr> <td>OK</td> <td>$IDOK (1)</td> </tr> <tr> <td>CANCEL</td> <td>$IDCANCEL (2)</td> </tr> <tr> <td>ABORT</td> <td>$IDABORT (3)</td> </tr> <tr> <td>RETRY</td> <td>$IDRETRY (4)</td> </tr> <tr> <td>IGNORE</td> <td>$IDIGNORE (5)</td> </tr> <tr> <td>YES</td> <td>$IDYES (6)</td> </tr> <tr> <td>NO</td> <td>$IDNO (7)</td> </tr> <tr> <td>TRY AGAIN</td> <td>$IDTRYAGAIN (10)</td> </tr> <tr> <td>CONTINUE</td> <td>$IDCONTINUE (11)</td> </tr> </table><br /> Constants are defined in MsgBoxConstants.au3.<br /> <h2>Remarks</h2> <p>The flag parameter can be a combination of the following values:<br /> <br /> <table> <tr> <th><strong>Constant Name</strong></th> <th><strong>Decimal flag</strong></th> <th><strong>Button-related result</strong></th> <th><strong>Hexadecimal flag</a></th> </tr> <tr> <td>$MB_OK</td> <td>0</td> <td>OK button</td> <td>0x0</td> </tr> <tr> <td>$MB_OKCANCEL</td> <td>1</td> <td>OK and Cancel</td> <td>0x1</td> </tr> <tr> <td>$MB_ABORTRETRYIGNORE</td> <td>2</td> <td>Abort, Retry, and Ignore</td> <td>0x2</td> </tr> <tr> <td>$MB_YESNOCANCEL</td> <td>3</td> <td>Yes, No, and Cancel</td> <td>0x3</td> </tr> <tr> <td>$MB_YESNO</td> <td>4</td> <td>Yes and No</td> <td>0x4</td> </tr> <tr> <td>$MB_RETRYCANCEL</td> <td>5</td> <td>Retry and Cancel</td> <td>0x5</td> </tr> <tr> <td>$MB_CANCELTRYCONTINUE</td> <td>6</td> <td>Cancel, Try Again, Continue</td> <td>0x6</td> </tr> <tr> <td>$MB_HELP</td> <td>16384</td> <td>Adds a Help button to the message box. When the user clicks the Help button or presses F1, the system sends a WM_HELP message to the owner.</td> <td>0x4000</td> </tr> <tr> <td><strong>Constant Name</strong></td> <td><strong>decimal flag</strong></td> <td><strong>Icon-related Result</strong></td> <td><strong>hexadecimal flag</a></td> </tr> <tr> <td>$MB_ICONNONE</td> <td>0</td> <td>(No icon)</td> <td>0x0</td> </tr> <tr> <td>$MB_ICONERROR</td> <td>16</td> <td>Stop-sign icon</td> <td>0x10</td> </tr> <tr> <td>$MB_ICONQUESTION</td> <td>32</td> <td>Question-mark icon</td> <td>0x20</td> </tr> <tr> <td>$MB_ICONWARNING</td> <td>48</td> <td>Exclamation-point icon</td> <td>0x30</td> </tr> <tr> <td>$MB_ICONINFORMATION</td> <td>64</td> <td>Information-sign icon consisting of an 'i' in a circle</td> <td>0x40</td> </tr> <tr> <td><strong>Constant Name</strong></td> <td><strong>decimal flag</strong></td> <td><strong>Default-related Result</strong></td> <td><strong>hexadecimal flag</a></td> </tr> <tr> <td>$MB_DEFBUTTON1</td> <td>0</td> <td>First button is default button</td> <td>0x0</td> </tr> <tr> <td>$MB_DEFBUTTON2</td> <td>256</td> <td>Second button is default button</td> <td>0x100</td> </tr> <tr> <td>$MB_DEFBUTTON3</td> <td>512</td> <td>Third button is default button</td> <td>0x200</td> </tr> <tr> <td>$MB_DEFBUTTON4</td> <td>768</td> <td>Fourth button is default button</td> <td>0x300</td> </tr> <tr> <td><strong>Constant Name</strong></td> <td><strong>decimal flag</strong></td> <td><strong>Modality-related Result</strong></td> <td><strong>hexadecimal flag</a></td> </tr> <tr> <td>$MB_APPLMODAL</td> <td>0</td> <td>Application</td> <td>0x0</td> </tr> <tr> <td>$MB_SYSTEMMODAL</td> <td>4096</td> <td>System modal (dialog has an icon)</td> <td>0x1000</td> </tr> <tr> <td>$MB_TASKMODAL</td> <td>8192</td> <td>Task modal</td> <td>0x2000</td> </tr> <tr> <td><strong>Constant Name</strong></td> <td><strong>decimal flag</strong></td> <td><strong>Miscellaneous-related Result</strong></td> <td><strong>hexadecimal flag</a></td> </tr> <tr> <td></td> <td>0</td> <td>(nothing else special)</td> <td>0x0</td> </tr> <tr> <td>$MB_DEFAULT_DESKTOP_ONLY</td> <td>131072</td> <td><a href="MsgBox.htm">MsgBox()</a> shows on the desktop of the interactive window station.</td> <td>0x20000</td> </tr> <tr> <td>$MB_RIGHT</td> <td>524288</td> <td>title and text are right-justified</td> <td>0x80000</td> </tr> <tr> <td>$MB_RTLREADING</td> <td>1048576</td> <td>Displays message and caption text using right-to-left reading order on Hebrew and Arabic systems.</td> <td>0x100000</td> </tr> <tr> <td>$MB_SETFOREGROUND</td> <td>65536</td> <td>The message box becomes the foreground window.</td> <td>0x10000</td> </tr> <tr> <td>$MB_TOPMOST</td> <td>262144</td> <td><a href="MsgBox.htm">MsgBox()</a> has top-most attribute set</td> <td>0x40000</td> </tr> <tr> <td>$MB_SERVICE_NOTIFICATION</td> <td>2097152</td> <td>The function displays a message box on the current active desktop, even if there is no user logged on to the computer.</td> <td>0x200000</td> </tr> </table><br /> For example, to specify a SYSTEMMODAL box with the YES/NO buttons the flag value would be 4096+4 (or 4100) If using hexadecimal flags, that would be 0x1000+0x4 (or 0x1004).<br /> <br /> A message box appears centered on screen and resizes according to the text it contains. However, the title could get truncated if the SYSTEMMODAL flag (4096) is used.<br /> <br /> If "title" is equal to <a href="../keywords/Default.htm">Default keyword</a> @ScriptName is used.<br /> <br /> Special note; MsgBox does not support the use of the timeout parameter when the $MB_SERVICE_NOTIFICATION flag is used when calling MsgBox from a service. The message box window is not owned by the process calling MsgBox when $MB_SERVICE_NOTIFICATION is specified.<br /> <br /> Constants are defined in MsgBoxConstants.au3.<br /> </p> <h2>Related</h2> <p><a href="InputBox.htm">InputBox</a>, <a href="SplashTextOn.htm">SplashTextOn</a>, <a href="ToolTip.htm">ToolTip</a>, <a href="TrayTip.htm">TrayTip</a></p> <h2 class="bottom">Example</h2> <script type="text/javascript"> if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) // IE (4+) only function copyToClipboard(section) { if (window.clipboardData && clipboardData.setData) { clipboardData.setData("text", section + "\r\n"); alert("Copied to clipboard"); } } </script> <h3>Example 1</h3> <div class="codeSnippetContainer"> <div class="codeSnippetContainerTabs"> <script type="text/javascript"> if (document.URL.match(/^mk:@MSITStore:/i)) { document.write('<div class="codeSnippetContainerTab codeSnippetContainerTabSingle" dir="ltr">'); document.write('<object id=hhctrl type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"><param name="Command" value="ShortCut"><param name="Font" value="Verdana,10pt"><param name="Text" value="Text:Open this Script"><param name="Item1" value=",Examples\\HelpFile\\MsgBox.au3,"></object>'); document.write('<\/div>'); } </script> </div> <div class="codeSnippetContainerCodeContainer"> <div class="codeSnippetToolBar"> <div class="codeSnippetToolBarText"> <script type="text/javascript"> if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) // IE (4+) only document.write('<a href="#" id="copy" onclick="copyToClipboard(document.getElementById(\'copytext1\').innerText)">Copy to clipboard<\/a>'); </script> </div> </div> <div class="codeSnippetContainerCode" dir="ltr" id="copytext1"> <pre> <span><a class="codeSnippetLink" href="../keywords/include.htm"><span class="S11">#include</span></a><span class="S0"> </span><span class="S7"><MsgBoxConstants.au3></span> <a class="codeSnippetLink" href="../functions/MsgBox.htm"><span class="S4">MsgBox</span></a><span class="S8">(</span><span class="S9">$MB_SYSTEMMODAL</span><span class="S8">,</span><span class="S0"> </span><span class="S7">"Title"</span><span class="S8">,</span><span class="S0"> </span><span class="S7">"This message box will timeout after 10 seconds or select the OK button."</span><span class="S8">,</span><span class="S0"> </span><span class="S3">10</span><span class="S8">)</span> <span class="S0"></span></span> </pre> </div> </div> </div> <h3>Example 2</h3> <div class="codeSnippetContainer"> <div class="codeSnippetContainerTabs"> <script type="text/javascript"> if (document.URL.match(/^mk:@MSITStore:/i)) { document.write('<div class="codeSnippetContainerTab codeSnippetContainerTabSingle" dir="ltr">'); document.write('<object id=hhctrl type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"><param name="Command" value="ShortCut"><param name="Font" value="Verdana,10pt"><param name="Text" value="Text:Open this Script"><param name="Item1" value=",Examples\\HelpFile\\MsgBox[2].au3,"></object>'); document.write('<\/div>'); } </script> </div> <div class="codeSnippetContainerCodeContainer"> <div class="codeSnippetToolBar"> <div class="codeSnippetToolBarText"> <script type="text/javascript"> if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) // IE (4+) only document.write('<a href="#" id="copy" onclick="copyToClipboard(document.getElementById(\'copytext2\').innerText)">Copy to clipboard<\/a>'); </script> </div> </div> <div class="codeSnippetContainerCode" dir="ltr" id="copytext2"> <pre> <span><a class="codeSnippetLink" href="../keywords/include.htm"><span class="S11">#include</span></a><span class="S0"> </span><span class="S7"><MsgBoxConstants.au3></span> <a class="codeSnippetLink" href="../keywords/Dim.htm"><span class="S5">Local</span></a><span class="S0"> </span><span class="S9">$iTimeout</span><span class="S0"> </span><a class="codeSnippetLink" href="../intro/lang_operators.htm"><span class="S8">=</span></a><span class="S0"> </span><span class="S3">10</span> <span class="S1">; Display a message box with a nested variable in its text.</span> <a class="codeSnippetLink" href="../functions/MsgBox.htm"><span class="S4">MsgBox</span></a><span class="S8">(</span><span class="S9">$MB_SYSTEMMODAL</span><span class="S8">,</span><span class="S0"> </span><span class="S7">"Title"</span><span class="S8">,</span><span class="S0"> </span><span class="S7">"This message box will timeout after "</span><span class="S0"> </span><span class="S8">&</span><span class="S0"> </span><span class="S9">$iTimeout</span><span class="S0"> </span><span class="S8">&</span><span class="S0"> </span><span class="S7">" seconds or select the OK button."</span><span class="S8">,</span><span class="S0"> </span><span class="S9">$iTimeout</span><span class="S8">)</span> <span class="S0"></span></span> </pre> </div> </div> </div> </body> </html> 👉 _WD_GetSource() Spoiler expandcollapse popup<html><head> <title>Function MsgBox</title> <meta charset="utf-8"> <link href="../css/default.css" rel="stylesheet"> </head> <body> <h1 class="small">Function Reference</h1> <hr style="height:0px"> <h1>MsgBox</h1> <p class="funcdesc">Displays a simple message box with optional timeout.<br></p> <p class="codeheader"> MsgBox ( flag, "title", "text" [, timeout = 0 [, hwnd]] )<br> </p> <h2>Parameters</h2> <table> <tbody><tr> <td style="width:15%">flag</td> <td style="width:85%">The flag indicates the type of message box and the possible button combinations. See remarks.</td> </tr> <tr> <td>title</td> <td>The title of the message box.</td> </tr> <tr> <td>text</td> <td>The text of the message box.</td> </tr> <tr> <td>timeout</td> <td><strong>[optional]</strong> Timeout in seconds. After the timeout has elapsed the message box will close automatically. The default is 0, which is no timeout.</td> </tr> <tr> <td>hwnd</td> <td><strong>[optional]</strong> The window handle to use as the parent for this dialog.</td> </tr> </tbody></table> <h2>Return Value</h2> <table class="noborder"> <tbody><tr> <td style="width:10%" class="valign-top">Success:</td> <td style="width:90%">the ID of the button pressed.</td> </tr> <tr> <td class="valign-top">Failure:</td> <td>$IDTIMEOUT (-1) if the message box timed out.</td> </tr> </tbody></table><br> <br ><br> <table> <tbody><tr> <td style="width:15%"><strong>Button Pressed</strong></td> <td style="width:85%"><strong>Return Value </strong></td> </tr> <tr> <td>OK</td> <td>$IDOK (1)</td> </tr> <tr> <td>CANCEL</td> <td>$IDCANCEL (2)</td> </tr> <tr> <td>ABORT</td> <td>$IDABORT (3)</td> </tr> <tr> <td>RETRY</td> <td>$IDRETRY (4)</td> </tr> <tr> <td>IGNORE</td> <td>$IDIGNORE (5)</td> </tr> <tr> <td>YES</td> <td>$IDYES (6)</td> </tr> <tr> <td>NO</td> <td>$IDNO (7)</td> </tr> <tr> <td>TRY AGAIN</td> <td>$IDTRYAGAIN (10)</td> </tr> <tr> <td>CONTINUE</td> <td>$IDCONTINUE (11)</td> </tr> </tbody></table><br> Constants are defined in MsgBoxConstants.au3.<br> <h2>Remarks</h2> <p>The flag parameter can be a combination of the following values:<br> <br> </p><table> <tbody><tr> <th><strong>Constant Name</strong></th> <th><strong>Decimal flag</strong></th> <th><strong>Button-related result</strong></th> <th><strong>Hexadecimal flag</strong></th> </tr> <tr> <td>$MB_OK</td> <td>0</td> <td>OK button</td> <td>0x0</td> </tr> <tr> <td>$MB_OKCANCEL</td> <td>1</td> <td>OK and Cancel</td> <td>0x1</td> </tr> <tr> <td>$MB_ABORTRETRYIGNORE</td> <td>2</td> <td>Abort, Retry, and Ignore</td> <td>0x2</td> </tr> <tr> <td>$MB_YESNOCANCEL</td> <td>3</td> <td>Yes, No, and Cancel</td> <td>0x3</td> </tr> <tr> <td>$MB_YESNO</td> <td>4</td> <td>Yes and No</td> <td>0x4</td> </tr> <tr> <td>$MB_RETRYCANCEL</td> <td>5</td> <td>Retry and Cancel</td> <td>0x5</td> </tr> <tr> <td>$MB_CANCELTRYCONTINUE</td> <td>6</td> <td>Cancel, Try Again, Continue</td> <td>0x6</td> </tr> <tr> <td>$MB_HELP</td> <td>16384</td> <td>Adds a Help button to the message box. When the user clicks the Help button or presses F1, the system sends a WM_HELP message to the owner.</td> <td>0x4000</td> </tr> <tr> <td><strong>Constant Name</strong></td> <td><strong>decimal flag</strong></td> <td><strong>Icon-related Result</strong></td> <td><strong>hexadecimal flag</strong></td> </tr> <tr> <td>$MB_ICONNONE</td> <td>0</td> <td>(No icon)</td> <td>0x0</td> </tr> <tr> <td>$MB_ICONERROR</td> <td>16</td> <td>Stop-sign icon</td> <td>0x10</td> </tr> <tr> <td>$MB_ICONQUESTION</td> <td>32</td> <td>Question-mark icon</td> <td>0x20</td> </tr> <tr> <td>$MB_ICONWARNING</td> <td>48</td> <td>Exclamation-point icon</td> <td>0x30</td> </tr> <tr> <td>$MB_ICONINFORMATION</td> <td>64</td> <td>Information-sign icon consisting of an 'i' in a circle</td> <td>0x40</td> </tr> <tr> <td><strong>Constant Name</strong></td> <td><strong>decimal flag</strong></td> <td><strong>Default-related Result</strong></td> <td><strong>hexadecimal flag</strong></td> </tr> <tr> <td>$MB_DEFBUTTON1</td> <td>0</td> <td>First button is default button</td> <td>0x0</td> </tr> <tr> <td>$MB_DEFBUTTON2</td> <td>256</td> <td>Second button is default button</td> <td>0x100</td> </tr> <tr> <td>$MB_DEFBUTTON3</td> <td>512</td> <td>Third button is default button</td> <td>0x200</td> </tr> <tr> <td>$MB_DEFBUTTON4</td> <td>768</td> <td>Fourth button is default button</td> <td>0x300</td> </tr> <tr> <td><strong>Constant Name</strong></td> <td><strong>decimal flag</strong></td> <td><strong>Modality-related Result</strong></td> <td><strong>hexadecimal flag</strong></td> </tr> <tr> <td>$MB_APPLMODAL</td> <td>0</td> <td>Application</td> <td>0x0</td> </tr> <tr> <td>$MB_SYSTEMMODAL</td> <td>4096</td> <td>System modal (dialog has an icon)</td> <td>0x1000</td> </tr> <tr> <td>$MB_TASKMODAL</td> <td>8192</td> <td>Task modal</td> <td>0x2000</td> </tr> <tr> <td><strong>Constant Name</strong></td> <td><strong>decimal flag</strong></td> <td><strong>Miscellaneous-related Result</strong></td> <td><strong>hexadecimal flag</strong></td> </tr> <tr> <td></td> <td>0</td> <td>(nothing else special)</td> <td>0x0</td> </tr> <tr> <td>$MB_DEFAULT_DESKTOP_ONLY</td> <td>131072</td> <td><a href="MsgBox.htm">MsgBox()</a> shows on the desktop of the interactive window station.</td> <td>0x20000</td> </tr> <tr> <td>$MB_RIGHT</td> <td>524288</td> <td>title and text are right-justified</td> <td>0x80000</td> </tr> <tr> <td>$MB_RTLREADING</td> <td>1048576</td> <td>Displays message and caption text using right-to-left reading order on Hebrew and Arabic systems.</td> <td>0x100000</td> </tr> <tr> <td>$MB_SETFOREGROUND</td> <td>65536</td> <td>The message box becomes the foreground window.</td> <td>0x10000</td> </tr> <tr> <td>$MB_TOPMOST</td> <td>262144</td> <td><a href="MsgBox.htm">MsgBox()</a> has top-most attribute set</td> <td>0x40000</td> </tr> <tr> <td>$MB_SERVICE_NOTIFICATION</td> <td>2097152</td> <td>The function displays a message box on the current active desktop, even if there is no user logged on to the computer.</td> <td>0x200000</td> </tr> </tbody></table><br> For example, to specify a SYSTEMMODAL box with the YES/NO buttons the flag value would be 4096+4 (or 4100) If using hexadecimal flags, that would be 0x1000+0x4 (or 0x1004).<br> <br> A message box appears centered on screen and resizes according to the text it contains. However, the title could get truncated if the SYSTEMMODAL flag (4096) is used.<br> <br> If "title" is equal to <a href="../keywords/Default.htm">Default keyword</a> @ScriptName is used.<br> <br> Special note; MsgBox does not support the use of the timeout parameter when the $MB_SERVICE_NOTIFICATION flag is used when calling MsgBox from a service. The message box window is not owned by the process calling MsgBox when $MB_SERVICE_NOTIFICATION is specified.<br> <br> Constants are defined in MsgBoxConstants.au3.<br> <p></p> <h2>Related</h2> <p><a href="InputBox.htm">InputBox</a>, <a href="SplashTextOn.htm">SplashTextOn</a>, <a href="ToolTip.htm">ToolTip</a>, <a href="TrayTip.htm">TrayTip</a></p> <h2 class="bottom">Example</h2> <script type="text/javascript"> if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) // IE (4+) only function copyToClipboard(section) { if (window.clipboardData && clipboardData.setData) { clipboardData.setData("text", section + "\r\n"); alert("Copied to clipboard"); } } </script> <h3>Example 1</h3> <div class="codeSnippetContainer"> <div class="codeSnippetContainerTabs"> <script type="text/javascript"> if (document.URL.match(/^mk:@MSITStore:/i)) { document.write('<div class="codeSnippetContainerTab codeSnippetContainerTabSingle" dir="ltr">'); document.write('<object id=hhctrl type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"><param name="Command" value="ShortCut"><param name="Font" value="Verdana,10pt"><param name="Text" value="Text:Open this Script"><param name="Item1" value=",Examples\\HelpFile\\MsgBox.au3,"></object>'); document.write('<\/div>'); } </script> </div> <div class="codeSnippetContainerCodeContainer"> <div class="codeSnippetToolBar"> <div class="codeSnippetToolBarText"> <script type="text/javascript"> if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) // IE (4+) only document.write('<a href="#" id="copy" onclick="copyToClipboard(document.getElementById(\'copytext1\').innerText)">Copy to clipboard<\/a>'); </script> </div> </div> <div class="codeSnippetContainerCode" dir="ltr" id="copytext1"> <pre><span><a class="codeSnippetLink" href="../keywords/include.htm"><span class="S11">#include</span></a><span class="S0"> </span><span class="S7"><MsgBoxConstants.au3></span> <a class="codeSnippetLink" href="../functions/MsgBox.htm"><span class="S4">MsgBox</span></a><span class="S8">(</span><span class="S9">$MB_SYSTEMMODAL</span><span class="S8">,</span><span class="S0"> </span><span class="S7">"Title"</span><span class="S8">,</span><span class="S0"> </span><span class="S7">"This message box will timeout after 10 seconds or select the OK button."</span><span class="S8">,</span><span class="S0"> </span><span class="S3">10</span><span class="S8">)</span> <span class="S0"></span></span> </pre> </div> </div> </div> <h3>Example 2</h3> <div class="codeSnippetContainer"> <div class="codeSnippetContainerTabs"> <script type="text/javascript"> if (document.URL.match(/^mk:@MSITStore:/i)) { document.write('<div class="codeSnippetContainerTab codeSnippetContainerTabSingle" dir="ltr">'); document.write('<object id=hhctrl type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"><param name="Command" value="ShortCut"><param name="Font" value="Verdana,10pt"><param name="Text" value="Text:Open this Script"><param name="Item1" value=",Examples\\HelpFile\\MsgBox[2].au3,"></object>'); document.write('<\/div>'); } </script> </div> <div class="codeSnippetContainerCodeContainer"> <div class="codeSnippetToolBar"> <div class="codeSnippetToolBarText"> <script type="text/javascript"> if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) // IE (4+) only document.write('<a href="#" id="copy" onclick="copyToClipboard(document.getElementById(\'copytext2\').innerText)">Copy to clipboard<\/a>'); </script> </div> </div> <div class="codeSnippetContainerCode" dir="ltr" id="copytext2"> <pre><span><a class="codeSnippetLink" href="../keywords/include.htm"><span class="S11">#include</span></a><span class="S0"> </span><span class="S7"><MsgBoxConstants.au3></span> <a class="codeSnippetLink" href="../keywords/Dim.htm"><span class="S5">Local</span></a><span class="S0"> </span><span class="S9">$iTimeout</span><span class="S0"> </span><a class="codeSnippetLink" href="../intro/lang_operators.htm"><span class="S8">=</span></a><span class="S0"> </span><span class="S3">10</span> <span class="S1">; Display a message box with a nested variable in its text.</span> <a class="codeSnippetLink" href="../functions/MsgBox.htm"><span class="S4">MsgBox</span></a><span class="S8">(</span><span class="S9">$MB_SYSTEMMODAL</span><span class="S8">,</span><span class="S0"> </span><span class="S7">"Title"</span><span class="S8">,</span><span class="S0"> </span><span class="S7">"This message box will timeout after "</span><span class="S0"> </span><span class="S8">&</span><span class="S0"> </span><span class="S9">$iTimeout</span><span class="S0"> </span><span class="S8">&</span><span class="S0"> </span><span class="S7">" seconds or select the OK button."</span><span class="S8">,</span><span class="S0"> </span><span class="S9">$iTimeout</span><span class="S8">)</span> <span class="S0"></span></span> </pre> </div> </div> </div> </br ></body></html> Maybe this already helps you? Best regards Sven Edited May 16, 2024 by SOLVE-SMART Stay innovative! Spoiler 🌍 Au3Forums 🎲 AutoIt (en) Cheat Sheet 📊 AutoIt limits/defaults 💎 Code Katas: [...] (comming soon) 🎭 Collection of GitHub users with AutoIt projects 🐞 False-Positives 🔮 Me on GitHub 💬 Opinion about new forum sub category 📑 UDF wiki list ✂ VSCode-AutoItSnippets 📑 WebDriver FAQs 👨🏫 WebDriver Tutorial (coming soon)
argumentum Posted May 16, 2024 Author Posted May 16, 2024 5 hours ago, SOLVE-SMART said: 👉 _WD_GetSource() ... ConsoleWrite(@CRLF & '--- >' & _WD_GetSource($__g_sSession) & '< ---' & @CRLF & @CRLF) ... That did it. SOLVE-SMART 1 Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting.
argumentum Posted May 16, 2024 Author Posted May 16, 2024 2 minutes ago, Andreik said: _INetGetSource() doesn't work? 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 SOLVE-SMART 1 Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting.
Andreik Posted May 16, 2024 Posted May 16, 2024 I know, I know, there are tons of dynamic loaded content.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now