| View previous topic :: View next topic |
| Author |
Message |
Gandi Guest
|
Posted: Thu Feb 22, 2007 8:32 pm Post subject: Is it possible to do that.. |
|
|
| When the script click to a web page button that check if a new page appears if not that continue to click button and check if new page appears. |
|
| Back to top |
|
 |
NiJo
Joined: 12 Nov 2005 Posts: 73
|
Posted: Thu Feb 22, 2007 8:47 pm Post subject: |
|
|
Does the webPage load something if it does "not load" as you say?
If it only loads something (Progress at statusbar control visible) those times you want, it's detectable.
see Wait for Webpage? |
|
| Back to top |
|
 |
l4zphi5h3n7
Joined: 27 Dec 2006 Posts: 88 Location: Louisville Kentucky
|
Posted: Thu Feb 22, 2007 8:51 pm Post subject: |
|
|
| Please clarify your question and if possible edit the subject to a more accurate summary of your issue. -thx |
|
| Back to top |
|
 |
Gandi Guest
|
Posted: Thu Feb 22, 2007 8:53 pm Post subject: |
|
|
| When u click on the button, that open a page, and sometime that open another page. I want that detect that another page. |
|
| Back to top |
|
 |
NiJo
Joined: 12 Nov 2005 Posts: 73
|
Posted: Thu Feb 22, 2007 9:00 pm Post subject: |
|
|
LaZfishEnt. he can't edit it because he was Guest...
Guest, sometimes it opens 1 page, and sometimes it opens 1+1 page, right? in another window? It's possible to detect that another window appeared. Or is the same window behavior but with different content or name?
Do you detect some consistency in the name of the pages? If the "Extra" page have something different but always there in the name, you just have to detect the window with a WinExist("name") inside a loop... |
|
| Back to top |
|
 |
Gandi Guest
|
Posted: Thu Feb 22, 2007 9:04 pm Post subject: |
|
|
ok...
all this page appears in the same windows, same page.
a= page 1
b= page to skip
c= true page
i got to page a, and start the script to click on button.
page b appears, that continue clicking on button.
page c appears, that detect this is the good page and msgbox me.. |
|
| Back to top |
|
 |
Gandi Guest
|
Posted: Thu Feb 22, 2007 9:07 pm Post subject: |
|
|
A way for that:
if that check on the url path (where u type http://www...)
and the same url, that continue click on button, and if that found another url (where u type http://www...) that msgbox me |
|
| Back to top |
|
 |
NiJo
Joined: 12 Nov 2005 Posts: 73
|
Posted: Thu Feb 22, 2007 9:19 pm Post subject: |
|
|
use:
| Code: | SetTitleMatchMode, 2
ControlGetText, URL, Edit1, Internet Explorer |
URL becomes your current URL of the TopMost IE page. |
|
| Back to top |
|
 |
Gandi Guest
|
Posted: Thu Feb 22, 2007 11:07 pm Post subject: |
|
|
SetTitleMatchMode, 2
ControlGetText, URL, Edit1, Microsoft Internet Explorer
if %url% = http://blablabla.com/blabla
msgbox, done!
how to make that correctly? |
|
| Back to top |
|
 |
Gandi Guest
|
Posted: Thu Feb 22, 2007 11:11 pm Post subject: |
|
|
sorry i got it
ty. |
|
| Back to top |
|
 |
|