Any method of Openscript code we can use to take a screen shot?

same as my question, what is method we can use to take a screen shot of browser? i would like to use it when we flag a failure of testing.

you have the funciton:
.getScreenCapture(0, 0, 400, 400, imgName)
Something like that:
import java.io.File;
import java.io.FileOutputStream;
String path = getScriptPackage().getScriptPath();
String folder = path.substring(0, path.lastIndexOf("\\")); String imgName = folder + "\\capturedImg.jpg"; File imgFile = new File (imgName); [...] web.window(5, "/web:window[@index='0' or @title='Test Web Events']")
.navigate("http://example.com/Web_Event.html");
web.window(7, "/web:window[@index='0' or @title='Test Web Events']")
.waitForPage(null);
web.textBox("/web:window[@index='0' or @title='Test Web Events']" +
"/web:document[@index='0']" +
"/web:input_text[@name='Text' or @index='0']")
.focus();
if(imgFile.exists()){
if(imgFile.setReadOnly()){
imgFile.setWritable(true);
imgFile.delete();
ft.getScreenCapture(0, 0, 400, 400, imgName); if(!imgFile.exists()){
warn("getScreenCapture() failed.");
JB

Similar Messages

  • Win7 Firefox 3.6.13 - I'm using remotely Anywhere (9.0 or later). Is there a plugin (that compares to ActiveX/Java) that Firefox can use other than HTML screen shots?

    Just trying to get rid of MS stuff. I like Firefox much better

    Your above posted system details show outdated plugin(s) with known security and stability risks.
    *Shockwave Flash 9.0 r999
    Update the [[Managing the Flash plugin|Flash]] plugin to the latest version.
    *http://www.adobe.com/software/flash/about/
    In Firefox 3.6 and later versions you need the Next-Generation Java™ Plug-In present in Java 6 U10 and later (Linux: libnpjp2.so; Windows: npjp2.dll).
    http://java.com/en/download/faq/firefox_newplugin.xml
    See also http://java.sun.com/javase/6/webnotes/install/jre/manual-plugin-install-linux.html

  • No of classes, Methods, Lines of codes, DLL's used and Third Party Libraries details identifying tools

    We have started a project to migrate 100+ Web Applications developed using legacy Microsoft technologies to latest .Net 4.5 Framework.
    The following are the planned migration approach
    Classic Asp à                                                   
    Asp.Net 1.1 Framework à Asp.Net 4.5 Framework
    Asp.Net 2.0, 3.5, 4.0 Framework à         Asp.Net 4.5 Framework (Direct Migration)
    Asp.Net 2.0, 3.5, 4.0 Framework à         Asp.Net 4.5 Framework (Application Rewrite
    using MVC/Entity Framework)
    VB 6 (COM/DCOM) à                                  
    C# .Net 4.5 (Web Services)
    We have to analyze 100+ applications to categorize them as Simple/Medium/Complex conversions for planning the timeline for completing the migration activities.
    Analysis includes identifying the following details - No of classes, Methods, Lines of codes, DLL’s used and Third Party Libraries  details
    for 100+ Microsoft applications.
    Could you please let me know do we have any effective tool to identify above mentioned details?

    This forum is for Microsoft Project Server, an EPM tool. You will need to find a more suitable forum for your question.
    Good Luck with the conversion!
    Rod Gill
    Author of the one and only Project VBA Book
    www.project-systems.co.nz

  • I have a ipod touch 2nd generation 8gb 4.2.1 im new to itunes i made a itunes account but it says i need a payment method is there anyway i can use my paypal if not is there a way to not have to use a payment method for itunes store please help ty

    i have a ipod touch 2nd generation 8gb 4.2.1 im new to itunes i made a itunes account but it says i need a payment method is there anyway i can use my paypal if not is there a way to not have to use a payment method for itunes store please help ty

    Create a NEW account using these instructions. Make sure you follow the instructions. Many do not and if you do not you will not get the None option. You must use an email address that you have not used with Apple before.
    Creating an iTunes Store, App Store, iBookstore, and Mac App Store account without a credit card
    Using those instructions you may also be able to select PayPal if that is allowed in your country.

  • Are there any other flash players that you can use on Safari other than Adobe

    Are there any other flash players that you can use on Safari other than Adobe?

    Not as far as I am aware.
    The latest version of Adobe FlashPlayer can be obtained from here:
    http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFl ash
    You can check here:  http://www.adobe.com/products/flash/about/  to see which version you should install for your Mac and OS The latest version, 10.2.152.25 or later, is for Intel Macs only, as Adobe no longer support the PPC platform. Note that the latest Flash Player update only works on YouTube with Safari in 32 bit mode - until YouTube correct this.

  • Do we have any WMI class so that we can use it for Drive Extension?

    Do we have any WMI class so that we can use it for Drive Extension?

    Could you please provide some more information about what you are trying to accomplish? 
    Do you need a WMI class because you are trying to write a program?
    By 'drive extension' do you mean extending a volume that resides on a drive?
    If trying to accomplish this via scripting, you can readily use diskpart.
    You don't say what operating system you are working with - PowerShell 4.0 that comes with Windows 8.1 and Windows Server 2012 R2 has a Resize-Partition cmdlet.
    I could go on guessing, but more information from you would be helpful.
    .:|:.:|:. tim

  • I have deleted by accident the backup folder on an external HD. Any advice on which app I can use/buy to recover the info? Thanks in advance!

    I have deleted by accident the backup folder on an external HD.
    I did the backup since I had to sent my macbook pro retina display to customer care.
    By accident, I deleted the backup folder on my external HD.
    Any advice on which app I can use/buy to recover the info?
    Thanks in advance!
    elmoven.- desperate trying to recover his Ph.D info from 3 years

    IT SOUNDS wiered but there is just for your pc just goto statrtup menu--->System tools -->system restore by Today's date and time

  • How to take the screen shot of my computer page by using Labview.... is there any funtions available in Labview?

    How to take the screen shot of my computer page by using Labview.... is there any funtions available in Labview?

    Another thread about this theme.
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions

  • Hi my name is Aditya. i am using ipad 2. 2 days ago my ipad fall down from my hand and now its screen is not working it is totally blank but shocking thing is that when i take a screen shot the display came back for 2-3 second. any one like me?

    hi my name is Aditya. i am using ipad 2. 2 days ago my ipad fall down from my hand and now its screen is not working it is totally blank but shocking thing is that when i take a screen shot the display came back for 2-3 second. dose ne 1 have same problem....?

    Anyone have any suggestions? or is everyone else just as clueless as me !

  • How can I capture the photo shutter sound when you take a screen shot

    I want to use the Mac's shutter sound that is used when you take a screen shot or take a Photo Booth photo. I tried Audio Hijack but it doen't capture the sound. I figure this audio file must be in the system folder somewhere.

    A camera shutter sound can be found in
    HD>LIBRARY>AUDIO>APPLE LOOPS>APPLE>iLIFE SOUND EFFECTS>FOLEY

  • How can I take a screen shot on the iPad Air and keep the resolution at 2048 x 1536. For some reason when I'm in an app it reduces the resolution

    How can I take a screen shot on the iPad Air and keep the resolution at 2048 x 1536. For some reason when I'm in an app it reduces the resolution

    Tatanka11 wrote:
    I'm new to Mac,...
    Then...  You may find these Links of Interest and Value...
    Show me how to set up my Mac.
    http://www.apple.com/support/mac101/
    http://www.apple.com/support/switch101/     Switching from PC
    http://www.apple.com/findouthow/mac/
    Enjoy your Mac...

  • Hi am looking to buy the new ipad when on holiday in vegas can any one tell me if i can use a british sim in it thanks

    hi am looking to purchase the mew ipad when on holiday in vegas can anyone tell me if i can use a british sim in it thanks

    Using a UK SIM suggests that you will be accessing 3G data in the States using your UK card.  The cost of this is likely to be horrendous.  Advice: DON'T use a UK SIM abroad for data access, buy a local SIM at your destination and top it up as necessary.  Example: my local telco charges me 1p/Mb for 3G data at home; if I roam in Europe they charge £3.58/Mb.
    Lots of useful info here: http://utting.org/wordpress/category/applemacios/ipad/
    Nigel

  • Can someone help me synce my old G5 Motorola to my snow leopard laptop so I can use Quitktime with video screen capabilities for demo purposes and a job I have with a major website? Thanks!

    Is there anyway that I can sync this Motorola G5 dual, OS 10.5.8 with my ibook OS 10.6.8 so I can use the quicktime application on the Mororola? I need to network the two computers and if someone could kindly tell me how to do this with either wifi, USB, orFirewire, I'd be very grateful. My ethernet connection is in use and I only have one and no hub. Doing this will give me the ability to work for a site that needs my expertise in recording but I have old equipment right now on the recording end. No chance to upgrade at this point as we're broke and I'm severly injured, so I am trying to find a workaround that will let me access this copmuter, with snow leapord to work with the old one with (Motorola G5 dual w/10.5.8). It means a few bucks to us if I can make it happen, and my family really need to dough. It  will keep me from having to convert things to a youtube format, take the extra time involved to do that, when, instead, I could just take screen recordings instead. Unfortunately, I don't have Pro Tools on this computer or all would be fixable.
    I'm really hoping that you or someone else can help me get these two macs synced so I can do this. DO you think you can help me? Thanks so much! Scotty Goldberg

    Thanks so much for your reply but that won't help in my current situation. Maybe I didn't make it clear. The latest version of Quicktime as new as it sounds doesn't support screen recording on a powermac G5 Motorola chip with OS 10.5.8 which is the highest os I can go with that machine. If I can sync the two computers so I can get the application to record from my newer computer then I'm ok. I just don't have the recording application for audio that I'm using to demo for the website on the laptop as it's about 10,000 dollars. So, I have to use the older computer to do the audio presentation and try to get the newer computer synced to it so I can use the new version that works on snow leopard to record a screen shot that will hopefully appear on my laptop instead of the old machine. Hope that makes sense. It's a bit confusing but in a nutshell it's like this:
    1. I am a Pro Tools Instructor which is the state of the art application and recording device for audio and movie scoring and I have a new job where I make small snippets of tips using Pro Tools which I'd like to record with quicktime on screen as they happen
    2. the best version of Quicktime Pro available for the Power Mac, OS 10.5.8 will not do screen recording on it.
    3. I can use the Quicktime application from my newer laptop but I need to sync it to the old machine
    4. I'm hoping but I don't know, if I do this, that I can record Pro Tools in action from my new machine buy seeing it on this laptop screen and then recording it with the new quicktime.
    5. If I can sync the two computers, I'm hoping this can happen but I can't use my ethernet connection as I have it used to connect to my recording console and can't afford to buy anything new like an ethernet hub yo connect the two so I'm hoping that there's another way to connect them.
    I hope that makes sense and that possible you or someone else can help. Thanks so much! Scott

  • My Iphone 4 keeps trying to turn itself off and also takes random screen shots.  I think it might have something to do with the Sleep/Awake button but any help would be greatly appreciated.

    My Iphone is constantly trying to turn itself off and also taking screen shots when I'm not touching it.  I think it may have something to do with the Sleep button but would welcome any suggestions. I have already restored it to Factory settings but it didn't help.
    Thanks,

    Did you try to set it up as new device, without using the latest backup?
    How to back up your data and set up as a new device

  • Zoom used to Scroll down Screen Shot

    Can you use the Zoom effect to scroll down a screen shot? And
    how?

    Hi SM6601
    As far as my knowledge extends, a Zoom Area will only magnify
    a portion of the screen as displayed. However, theoretically, and I
    have not tested this, If you place a Zoom Area over a FMR then that
    scrolling portion of the SWF should be displayed.
    Give it a try and let me know please.

Maybe you are looking for