Possible to replay requests in Internet Explorer?

Coldblackice

[H]ard|Gawd
Joined
Aug 14, 2010
Messages
1,152
I know Firebug and Chrome tools provide the ability to replay browser requests, but can't seem to find this ability in Internet Explorer's developer tools.

Is this possible to do?
 
You can do it through COM objects with PowerShell. I put this together awhile ago to input into a text field and click a button at random intervals. You will need to find out the element ID's by viewing the specific page source.

Code:
$url = "http://website.com";
while ($true) {
    $ie = new-object -com "InternetExplorer.Application";
    $ie.navigate($url); Start-Sleep 1;
    $doc = $ie.document;
    $tb1 = $doc.getElementByID("textbox");
    $tb1.value = "text to enter";
    $add = $doc.getElementByID("clickbutton");
    $add.click();
    $ie.quit();
    $sleepTime = Get-Random -Minimum 6000 -Maximum 10000;
    Write-Host $("`tSleeping for " + [math]::round($sleepTime / 60, 1) + " minutes...");
    Start-Sleep -seconds $sleepTime;
}
 
Back
Top