Lailton
In my web crawiling application .. I am trying to navigate back one page and automating that seems to be a syntactical task ..
I have searched and come up with multiple possibilities but each fail ..
Window.History.GoBack(-1)
From MSDN :
http://msdn.microsoft.com/en-us/library ... 85%29.aspx
IE is the browser object in this code ..
*window.frames(0).history.back 0
SysWait(10)
IE:Window:History:GoBack(-1)
* IE:Back([-1])
Any ideas how to navigate back to the previous web page ?
Thanks
Rick Lipkin
Lailton .. navigate back one page in IE
- Rick Lipkin
- Posts: 2397
- Joined: Fri Oct 07, 2005 1:50 pm
- Location: Columbia, South Carolina USA
-
- Posts: 603
- Joined: Sun May 04, 2008 8:44 pm
Re: Lailton .. navigate back one page in IE
try
IE:Window:History:back()
if no work try
IE:Window:History:go( -1 )
IE:Window:History:back()
if no work try
IE:Window:History:go( -1 )
- Rick Lipkin
- Posts: 2397
- Joined: Fri Oct 07, 2005 1:50 pm
- Location: Columbia, South Carolina USA
Re: Lailton .. navigate back one page in IE
Lailton
Thank you for your ideas .. both suggestions failed ..
IE:Window:History:back()
Application
===========
Path and name: C:\Fox\WebCrawl\WebCrawl.Exe (32 bits)
Size: 2,073,600 bytes
Time from start: 0 hours 0 mins 51 secs
Error occurred at: 06/06/2011, 08:44:58
Error description: Error InternetExplorer.Application/0 S_OK: WINDOW
Args:
Stack Calls
===========
Called from: source\rtl\win32ole.prg => TOLEAUTO:WINDOW(0)
Called from: Vendor1.prg => _VENDOR1(310)
Called from: SEARCH.PRG => DOIT(215)
Called from: SEARCH.PRG => (b)_SEARCH(122)
Called from: .\source\classes\BUTTON.PRG => TBUTTON:CLICK(176)
Called from: .\source\classes\CONTROL.PRG => TBUTTON:HANDLEEVENT(1427)
Called from: .\source\classes\WINDOW.PRG => _FWH(3347)
Called from: => SENDMESSAGE(0)
Called from: .\source\classes\DIALOG.PRG => TDIALOG:COMMAND(407)
Called from: => TWINDOW:HANDLEEVENT(0)
Called from: .\source\classes\DIALOG.PRG => TDIALOG:HANDLEEVENT(928)
Called from: => DIALOGBOX(0)
Called from: .\source\classes\DIALOG.PRG => TDIALOG:ACTIVATE(273)
Called from: SEARCH.PRG => _SEARCH(130)
Called from: main.prg => (b)MAIN(229)
Called from: .\source\classes\BTNBMP.PRG => TBTNBMP:CLICK(445)
Called from: .\source\classes\BTNBMP.PRG => TBTNBMP:LBUTTONUP(631)
Called from: => TWINDOW:HANDLEEVENT(0)
Called from: .\source\classes\CONTROL.PRG => TCONTROL:HANDLEEVENT(1469)
Called from: .\source\classes\BTNBMP.PRG => TBTNBMP:HANDLEEVENT(1295)
Called from: .\source\classes\WINDOW.PRG => _FWH(3347)
Called from: => WINRUN(0)
Called from: .\source\classes\WINDOW.PRG => TWINDOW:ACTIVATE(966)
Called from: main.prg => MAIN(280)
IE:Window:History:go( -1 )
Application
===========
Path and name: C:\Fox\WebCrawl\WebCrawl.Exe (32 bits)
Size: 2,073,600 bytes
Time from start: 0 hours 0 mins 33 secs
Error occurred at: 06/06/2011, 08:47:10
Error description: Error InternetExplorer.Application/0 S_OK: WINDOW
Args:
Stack Calls
===========
Called from: source\rtl\win32ole.prg => TOLEAUTO:WINDOW(0)
Called from: Vendor1.prg => _VENDOR1(310)
Called from: SEARCH.PRG => DOIT(215)
Called from: SEARCH.PRG => (b)_SEARCH(122)
Called from: .\source\classes\BUTTON.PRG => TBUTTON:CLICK(176)
Called from: .\source\classes\CONTROL.PRG => TBUTTON:HANDLEEVENT(1427)
Called from: .\source\classes\WINDOW.PRG => _FWH(3347)
Called from: => SENDMESSAGE(0)
Called from: .\source\classes\DIALOG.PRG => TDIALOG:COMMAND(407)
Called from: => TWINDOW:HANDLEEVENT(0)
Called from: .\source\classes\DIALOG.PRG => TDIALOG:HANDLEEVENT(928)
Called from: => DIALOGBOX(0)
Called from: .\source\classes\DIALOG.PRG => TDIALOG:ACTIVATE(273)
Called from: SEARCH.PRG => _SEARCH(130)
Called from: main.prg => (b)MAIN(229)
Called from: .\source\classes\BTNBMP.PRG => TBTNBMP:CLICK(445)
Called from: .\source\classes\BTNBMP.PRG => TBTNBMP:LBUTTONUP(631)
Called from: => TWINDOW:HANDLEEVENT(0)
Called from: .\source\classes\CONTROL.PRG => TCONTROL:HANDLEEVENT(1469)
Called from: .\source\classes\BTNBMP.PRG => TBTNBMP:HANDLEEVENT(1295)
Called from: .\source\classes\WINDOW.PRG => _FWH(3347)
Called from: => WINRUN(0)
Called from: .\source\classes\WINDOW.PRG => TWINDOW:ACTIVATE(966)
Called from: main.prg => MAIN(280)
Must be a syntactical error somewhere ..
Rick Lipkin
Thank you for your ideas .. both suggestions failed ..
IE:Window:History:back()
Application
===========
Path and name: C:\Fox\WebCrawl\WebCrawl.Exe (32 bits)
Size: 2,073,600 bytes
Time from start: 0 hours 0 mins 51 secs
Error occurred at: 06/06/2011, 08:44:58
Error description: Error InternetExplorer.Application/0 S_OK: WINDOW
Args:
Stack Calls
===========
Called from: source\rtl\win32ole.prg => TOLEAUTO:WINDOW(0)
Called from: Vendor1.prg => _VENDOR1(310)
Called from: SEARCH.PRG => DOIT(215)
Called from: SEARCH.PRG => (b)_SEARCH(122)
Called from: .\source\classes\BUTTON.PRG => TBUTTON:CLICK(176)
Called from: .\source\classes\CONTROL.PRG => TBUTTON:HANDLEEVENT(1427)
Called from: .\source\classes\WINDOW.PRG => _FWH(3347)
Called from: => SENDMESSAGE(0)
Called from: .\source\classes\DIALOG.PRG => TDIALOG:COMMAND(407)
Called from: => TWINDOW:HANDLEEVENT(0)
Called from: .\source\classes\DIALOG.PRG => TDIALOG:HANDLEEVENT(928)
Called from: => DIALOGBOX(0)
Called from: .\source\classes\DIALOG.PRG => TDIALOG:ACTIVATE(273)
Called from: SEARCH.PRG => _SEARCH(130)
Called from: main.prg => (b)MAIN(229)
Called from: .\source\classes\BTNBMP.PRG => TBTNBMP:CLICK(445)
Called from: .\source\classes\BTNBMP.PRG => TBTNBMP:LBUTTONUP(631)
Called from: => TWINDOW:HANDLEEVENT(0)
Called from: .\source\classes\CONTROL.PRG => TCONTROL:HANDLEEVENT(1469)
Called from: .\source\classes\BTNBMP.PRG => TBTNBMP:HANDLEEVENT(1295)
Called from: .\source\classes\WINDOW.PRG => _FWH(3347)
Called from: => WINRUN(0)
Called from: .\source\classes\WINDOW.PRG => TWINDOW:ACTIVATE(966)
Called from: main.prg => MAIN(280)
IE:Window:History:go( -1 )
Application
===========
Path and name: C:\Fox\WebCrawl\WebCrawl.Exe (32 bits)
Size: 2,073,600 bytes
Time from start: 0 hours 0 mins 33 secs
Error occurred at: 06/06/2011, 08:47:10
Error description: Error InternetExplorer.Application/0 S_OK: WINDOW
Args:
Stack Calls
===========
Called from: source\rtl\win32ole.prg => TOLEAUTO:WINDOW(0)
Called from: Vendor1.prg => _VENDOR1(310)
Called from: SEARCH.PRG => DOIT(215)
Called from: SEARCH.PRG => (b)_SEARCH(122)
Called from: .\source\classes\BUTTON.PRG => TBUTTON:CLICK(176)
Called from: .\source\classes\CONTROL.PRG => TBUTTON:HANDLEEVENT(1427)
Called from: .\source\classes\WINDOW.PRG => _FWH(3347)
Called from: => SENDMESSAGE(0)
Called from: .\source\classes\DIALOG.PRG => TDIALOG:COMMAND(407)
Called from: => TWINDOW:HANDLEEVENT(0)
Called from: .\source\classes\DIALOG.PRG => TDIALOG:HANDLEEVENT(928)
Called from: => DIALOGBOX(0)
Called from: .\source\classes\DIALOG.PRG => TDIALOG:ACTIVATE(273)
Called from: SEARCH.PRG => _SEARCH(130)
Called from: main.prg => (b)MAIN(229)
Called from: .\source\classes\BTNBMP.PRG => TBTNBMP:CLICK(445)
Called from: .\source\classes\BTNBMP.PRG => TBTNBMP:LBUTTONUP(631)
Called from: => TWINDOW:HANDLEEVENT(0)
Called from: .\source\classes\CONTROL.PRG => TCONTROL:HANDLEEVENT(1469)
Called from: .\source\classes\BTNBMP.PRG => TBTNBMP:HANDLEEVENT(1295)
Called from: .\source\classes\WINDOW.PRG => _FWH(3347)
Called from: => WINRUN(0)
Called from: .\source\classes\WINDOW.PRG => TWINDOW:ACTIVATE(966)
Called from: main.prg => MAIN(280)
Must be a syntactical error somewhere ..
Rick Lipkin