I used to use iMacros all the time and to make the macro wait for the page to load it was as simple as:
SET !WAITPAGECOMPLETE YES
However now this doesn't work and it seems from the iMacros website http://wiki.imacros.net/!WAITPAGECOMPLETE that this feature isn't even compatible with Firefox anymore.
What is an alternative way of doing this other than waiting a specified amount of time? Surely there must be, why would subsequent version regress?
Thanks in advance
P.S. Reverting back to IE is not an option
Use
SET !TIMEOUT_PAGE 120
Then you will increase waiting time for a page to 120 seconds.
Related
I’ve run into an iMacros situation that I have never encountered before and was wondering if anyone has ever come across anything like this. I developed a macro for an application our company developed. It basically enters a location, a start time, and a run time. It runs good on my machine. I sent it to the person who requested it and it doesn’t work for her. She is getting this error:
Error -1300: Cannot find HTML element of type "INPUT:TEXT" with attribute(s) "NAME:WRKD_DOCK_NAME_label".. Line 3: TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:page_form ATTR=NAME:WRKD_DOCK_NAME_label CONTENT=LOSANGELES
I’ve checked her machine for the following items to confirm that it is the same as mine (they are):
(1) Tab settings in Internet Explorer
(2) iMacros Add-ons:
a. iMacros Browser Helper Object (enabled)
b. iMacros for IE (enabled)
(3) iMacros version 10.3.27.5830
(4) 32 bit machine
(5) Operating System: Windows 7 Enterprise
(6) Confirmed that LOSANGELES is a valid value
All of these are the same. Something has to be different. Let me know if you have any suggestions. Thanks………
Is there a way to clear all cache and cookies (equivalent of pressing ctrl+shift+del in firefox and selecting every checkbox) using imacros?
I know about the CLEAR command but I have found that it doesn't clear everything. Thank you.
Use the CLEAR command so that times of website response measurements are not influenced by using local cache data:
The code "CLEAR" without quote actually deletes all content. Make sure you do not run this function in incognito mode. This is because incognito do not delete content in as much as it doesn't save. But some sites can still pick your data on incognito mode. To make your script clear all data, run the script in a normal mode.
So I am very new to C++ and Linux and i need to find the time of the last boot from a c++ file. I have been using /proc files for the other info. I am not looking for up time.
I was trying to find a way to execute the "last reboot" command from my .cpp file but i cant figure this out. Is this possible, or is there a way to find the current time so i can subtract up time form the current?
Very lost...
This is homework by the way, but i have completed every other section and am just tied up on this one small part.
Also i have goggled for hours and just cant find a way... Am i misinterpreting something and its more simple then I am making it?
Just need the time of the last system boot
Thanks!
Get the current time using time (2) and subtract the number of seconds since boot that you get from sysinfo (2).
If you want the result in a nice, displayable format, use ctime (3) to turn it into a date/time string.
Figured it out with the /var/log/syslog not perfect since it will only work for 5 weeks but i think its sufficient for my assignment thanks all!
I am using cfzip to zip folders on my server, anywhere from 2mb to 5gb.
Its timing out on a folder that is 1.25gb and I get the following error:
The request has exceeded the allowable
time limit Tag: cfoutput
It errors after 11 minutes and I have the following tag at the top of the page <cfsetting requesttimeout="99999">. So technically it should be waiting 1666.65 minutes before timing out, right?
It's dedicated so I can push it to the max.
Any help with this would be very much appreciated.
Thanks :)
Zipping something that size it probably going to take a loooong time. With a file 5GB in size, I would also think you would start to get outofmemory exceptions as well.
I'd be inclined to step out of the Java process, and use cfexecute to run it at a native level using the command line (should be easy enough with whatever platform you are on).
Dropping that also into a cfthread is probably a good idea as well, and then working out some sort of alert system when it is complete sounds like a good idea.
You could try shoving the process into a thread. Those things rock out forever.
I don't know if its possible but just want to ask if we can cfhttp or any other thing to read selected amount of data instead of putting whole file in CFHTTP.FileContent.
I am using cfhttp and want to read only last two lines from a remote xml files(about 20 of them) and read middle two lines from some text files (about 7 of them). Is there any way I could just read that specific data instead of getting all files because its taking a lot of time right now(about 15-20 seconds). I just want to reduce the run time of my .cfm page.
Any suggestions ???
Hmm, not really any special way to get just parts of the remote files.
Do you have to do it every time? Could you fetch the files in the background, write them locally, and have your actual incoming requests just read those files? Make the reading of the remote files asynchronous to the incoming requests?
If not, and you're using CF8+, you could use CFTHREAD to thread out the various requests to run in parallel: http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Tags_t_04.html
You can use the "join" action in the end to make wait for all the threads to complete.
Edit:
Here's a great tutorial by Ben Nadel on using CFThread to parallelize CFHTTP requests:
http://www.bennadel.com/blog/749-Learning-ColdFusion-8-CFThread-Part-II-Parallel-Threads.htm
There's something else, though:
27-30 sequential http requests should not take 20-30 seconds. It really shouldn't even take 1-2 seconds - so you may have some serious other issue going on here.
HTTP does not have the ability to read a file in that manner. This has nothing to do with ColdFusion.
You can use some smart caching to reduce the time somewhat at the cost of a longer time the first time you run it using CFHTTP's method="HEAD" which does not.
Do you have a local copy of the page?
No, use CFHTTP method="GET" to grab and store it
Yes, use CFHTTP method="HEAD" to check the timestamp and compare it to the cached version. If cache is newer, use it, else CFHTTP method="GET" to grab and parse the file you want.
method="HEAD" will only grab the http headers and not the entire file which will speed things up ever so slightly. Either way, you are making almost 30 file requests, so this isn't going to be instantaneous either way you cut it.
How about ask CF to only serve that chunk of file with URL params?
Since it is XML, I guess you can use xmlSearch() and return only the result?
as for text file, u can pass in the startline & numOfLines and return only those lines as string?