Bug in 2.7.2 Scripting
I'm having problems with scripts in screen-scraper pro when creating a new script:
1- paste script code in the text box by using the "copy" command (PASS)
2- give a name to the script (PASS)
3- save eveything by pressing the save icon (PASS)
4- click on RUN (FAIL) --> no effect at all. it is like the script had no code in it.
I believe there is a bug because when I do not perform 4- but click on any other icons (e.g. scraping session) and then come back to the script window, the code has disappeared from the Script text window.
When doing a paste as described above and then export the script to XML, the XML file is blank except the header.
Was able to reproduce. System is XP/SP2. Script is Java. Screen-scraper 2.7.2 PRO. I do not think it is a script code issue because I have the same problem with the script code from the tutorials.
Am I the only one with this problem??
Ted
Bug in 2.7.2 Scripting
Hi Ted,
I still can't seem to reproduce it, but I wonder if it might be the JVM factor. screen-scraper actually ships with its own JVM, which we recommend you use. If you launch via the "Start" menu, or via the screen-scraper.exe binary it will use its own JVM. Are you launching it some other way such that it's using the separate JVM on your machine?
Please do let us know if you run into any other trouble.
Kind regards,
Todd
JVM update fixes this issue
Todd,
That is correct, however you must make sure you switch the window from the Script interface to another one. That's what's causing the problem because when you click back again on the script icon, then the text inside the script no longer shows up. I understand a scraping session must be active at that time, I had one active.
Surprisingly, it seems I have been able to fix the problem by updating my JVM. I updated my JVM earlier today as part as an update of another Java program and then I realized this could have been the cause of the problem.
I cannot guarantee it explains the script issue but it seems everything is fixed now. When I perform the same steps as above, the script code is available in the script window. The script is launched properly when I click run. Kinda strange but it is working.
There are a bunch of things I want to try with the program so I'll let you know if it happens again.
-T
Bug in 2.7.2 Scripting
Hi Ted,
Thanks for the posting. We definitely want to hunt down any bugs like this. I seem to be having trouble reproducing the issue, though.
I started with a completely fresh copy of screen-scraper 2.7.2, then followed these steps
1. Created a script by clicking the pencil and paper icon.
2. Pasted in a script that I copied out of our second tutorial (found here http//www.screen-scraper.com/support/tutorials/tutorial2/invoking_a_scraping_session_in_interpreted_java.php).
3. Gave the script the name "Test". I think I pressed the "Tab" key after doing this so that the tree nav on the left would update.
4. Clicked the floppy disk icon in the button bar to save.
5. Clicked the "Run" button in the script window to run the script.
In this case I didn't have the corresponding scraping session, so the script popped up an error message, but that's what should occur.
Did anything I described deviate from the steps you took? Can you think of anything else you might be doing or not doing that would help me to reproduce the issue?
Many thanks,
Todd Wilson