Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Wait till page is refreshed on selecting each combo box
#1
Greetings,

Below is a working code I have been using for a while now.
However, I want to do away with the fixed waiting period inserted after selecting a combo box item.
The page refreshes automatically upon selection.
So I would need something that continues immediately as the page completes the refresh.
Kindly advise.

Macro RO Sales gDN
Code:
Copy      Help
,
,;Client Type
,Htm e3=htm("SELECT" "ctl00_cphMain_cboClientType" "" w "0" 1 0x121 50)
,;e3.SetText(custType)
,;e3.SetFocus
,
,int typeNum=SelStr(1 custType2 "C" "P" "V")
,
,if typeNum=1
,,e3.CbSelect("Company")
,,wait 5
,,gDNCompany(fullName2)
,,goto Mobile
,if typeNum=2
,,e3.CbSelect("Private")
,,wait 7
,if typeNum=3
,,e3.CbSelect("VIP")
,,wait 5
Best Regards,
Philip
#2
Hi,

Can anyone help on this please.

Thanks,
Philip
Best Regards,
Philip
#3
Hi Gintaras,

Any luck on this query...
Best Regards,
Philip
#4
wait 0 I does not work?

Code:
Copy      Help
key F5
wait 0 I
OnScreenDisplay "page refreshed" 1
#5
Nope. Tried it.
The combo box refreshes the page automatically upon selecting an item.
It takes a few seconds to complete the refresh.
So, I think the wait 0 I already 'sees' the page and continues.
Best Regards,
Philip
#6
Try to wait for some condition, eg for an HTML element that exists only after refreshing, of for a captured image, or until something does not fail. It depends on page, I cannot give a universal solution.


Forum Jump:


Users browsing this thread: 5 Guest(s)