How can I avoid element waiting issue?

Discussions and Tech Support related to the iMacros Firefox Add-on, including the built-in Javascript scripting interface for playing .js files.

Moderators: Community Moderators, iMacros Moderators

Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the Google search box (at the top of each forum page) to see if a similar problem or question has already been addressed. This will search the entire contents of the forums as well as the iMacros Wiki.
3. We can respond much faster to your posts if you include the following information:

CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST

Answering your own posts (e.g. attempting to "bump" your topic) drops your topic from the list of unanswered threads, so it may actually receive less views.

How can I avoid element waiting issue?

by zhedielj on Wed Nov 30, 2016 1:27 am

Image

Win7 X64 firefox49.02 8.97

My script always stoped at below line. I had used "SET !TIMEOUT_STEP 1" and "SET !ERRORIGNORE YES" two commands to avoid error, but no effect.
EVENTS TYPE=MOUSEMOVE SELECTOR="*" POINTS="({{!VAR9}},637),({{!VAR9}},637),({{!VAR9}},637),({{!VAR9}},637)"
zhedielj
 
Posts: 13
Joined: Wed Apr 02, 2014 8:08 am

Re: How can I avoid element waiting issue?

by chivracq on Wed Nov 30, 2016 5:27 am

zhedielj wrote:Image

Code: Select all
Win7 X64
firefox49.02 
8.97


My script always stoped at below line. I had used "SET !TIMEOUT_STEP 1" and "SET !ERRORIGNORE YES" two commands to avoid error, but no effect.
Code: Select all
EVENTS TYPE=MOUSEMOVE SELECTOR="*" POINTS="({{!VAR9}},637),({{!VAR9}},637),({{!VAR9}},637),({{!VAR9}},637)"

Yep, known Bug since the 'EVENT' Mode exists and that I have reported since the first Version, more than 3 years ago, not really acknowledged by TechSup and never fixed, and never encountered/reported again by anybody else afaik, you are the first one..., Script simply hangs at the next Line after a 'MOUSEMOVE' Event with Object not found, even with '!ERRORIGNORE'...

You already seem to try to avoid that kind of Pb with "SELECTOR="*"" though I'm not sure it will work with a 'MOUSEMOVE', the Workaround I am using since a few months when I finally dug into the Pb again after 3 years is to first (try to) tag the Object I want to move with the 'TAG' Mode and using 'EVAL()' to compute which Selector to use for the 'MOUSEMOVE':
Code: Select all
'Check if Object is there:
SET !EXTRACT NULL
TAG POS=1 TYPE=DIV ATTR=ID:brThumb EXTRACT=TXT
SET Object_is_there EVAL("var s='{{!EXTRACT}}'; var x; if(s!='#EANF#'){x='#brThumb';} else{x='BODY';}; x;")

EVENT TYPE=CLICK SELECTOR="#brThumb" BUTTON=0
EVENT TYPE=MOUSEDOWN SELECTOR="#brThumb" BUTTON=0
EVENTS TYPE=MOUSEMOVE SELECTOR="{{Object_is_there}}" POINTS="(395,872),(399,872),(405,871),(410,871),(414,870),(418,869),(419,869),(420,869),(421,869),(422,869),(425,869),(428,869),(434,869),(439,869),(441,869),(445,869),(450,869),(452,869),(456,869),(459,869),(464,869)"
EVENTS TYPE=MOUSEMOVE SELECTOR="{{Object_is_there}}" POINTS="(503,869),(506,869),(507,869),(511,869),(514,869),(515,869),(517,869),(519,869),(521,869),(522,869),(524,869),(526,869),(528,869),(530,869),(532,869),(533,869),(534,869),(538,869),(539,869),(542,869),(543,869)"
EVENT TYPE=MOUSEUP POINT="(545,869)"
EVENT TYPE=CLICK SELECTOR="#brThumb" BUTTON=0
Created and tested on iMacros for FF v8.8.2, Pale Moon v24.6.4 (=FF45) or/and Pale Moon v26.3.3 (=FF47), Win10-x64.
Tested as well on iMacros for FF v8.9.7, FF47, Win10-x64.
- (F)CIM = (Full) Config Info Missing: iMacros + Browser + OS with all 3 Versions...
- I usually don't even read the Question if that (required) Info is not mentioned...
- Script & URL usually help a lot for a more "educated" Help...
chivracq
 
Posts: 6475
Joined: Sat Apr 13, 2013 6:07 am
Location: Amsterdam (NL)

Re: How can I avoid element waiting issue?

by zhedielj on Sun Dec 04, 2016 7:38 am

@chivracq Thank you for your smart resolution. :D I just want to kiss you. I have searched the whole forum for this problem, and I hardly think that can be resolved. You are my supper star.
zhedielj
 
Posts: 13
Joined: Wed Apr 02, 2014 8:08 am

Re: How can I avoid element waiting issue?

by chivracq on Sun Dec 04, 2016 12:39 pm

zhedielj wrote:@chivracq Thank you for your smart resolution. :D I just want to kiss you. I have searched the whole forum for this problem, and I hardly think that can be resolved. You are my supper star.

Ah-ah...!, nice to see that you are happy with this "Creative" Workaround, ah-ah...!, that I don't think I had posted already yet, so I will update as well my "Main" Thread where I keep a list of Bugs related to the 'EVENT' Mode and where I maintain as well a List of interesting Threads (related to the 'EVENT' Mode as well)...:
- Re: Feedback and Issues on EVENT Recording Mode.
- (F)CIM = (Full) Config Info Missing: iMacros + Browser + OS with all 3 Versions...
- I usually don't even read the Question if that (required) Info is not mentioned...
- Script & URL usually help a lot for a more "educated" Help...
chivracq
 
Posts: 6475
Joined: Sat Apr 13, 2013 6:07 am
Location: Amsterdam (NL)


Return to iMacros for Firefox

Who is online

Users browsing this forum: No registered users and 9 guests

-->