To Know The Source Code Of a Captcha from a particular website - captcha

"https://services.gst.gov.in/services/captcha?rnd=". My question is how can I able to create the same captcha image and what will be it's source code with css in PHP or other language?

Related

How do you put tracking code in a PDFLaTeX file

Suppose I have a PDF page (generated by say PDFLaTeX) that is accessed like a web page would. Is it possible to put a tracking code on it (for usage analytics) in a way similar to an HTML page?
Try this: https://github.com/igrigorik/ga-beacon
It can work where javascript doesn't such as emails, stackoverflow answers or github.

how to add a pdf file and view it in a Page based application

Actually i want to load a pdf file and view it like similar to page based application.So can anyone suggest me how to do it with sample code.I searched i didnt find any documentation or any sample code.
You want to create eBook type of app. https://github.com/brow/leaves the link example shows how to load pdf file and show. and if you want to add more animation like page curl then refer example here http://blog.steventroughtonsmith.com/2010/02/apples-ibooks-dynamic-page-curl.html

Selenium output url

I need to test an output of a page without making it pop up, but just go to the url.
If you have a pdf or word export link how would you test its contents.
The answer is to step outside of Selenium
To test a URL without making the window pop-up, consider downloading the contents of the URL without Selenium. I'm assuming you are using Java, so look into downloading the content of a URL in java. It also depends on what you are testing, this works if you want to just check if a URL is broken or not for example.
To check the contents of a PDF or a Word file, you also can't use Selenium. You will need to find a Java library to parse the PDF and Word files and then use that to read the content.
As you can see both require a bit of research on your part. The key is not getting hung up on Selenium and making use of the rest of the programming language.

QuickLook plugin displaying an image and some infos

I'm currently writing a QuickLook plugin, and I wondering how I can display an image and some information about that image at the same time, similar to http://www.code-line.com/software/sneakpeekphoto/ .
There is only one way to do so: Convert your content to an already supported one. This means either PDF or HTML. There are two options you have:
For static information you create a simple PDF preview by rendering a view into a PDF. (Use -dataWithPDFInsideRect: method of NSView)
For dynamic information create a HTML page with links and so on. QuickLook will then show it. (I think this is also the way your example does it.)
We have not found a way to create complex previews on ur own and had to stick to one of the methods, too. Keynote and Pages do the same -- they convert their presentations to multi-page PDF previews...

Create screenshot of the page with Watin-like tool

I need to create a screenshot of the page by providing a page URL to the command line tool. I found the following application: Convert HTML To Image. This tool is OK but want a more flexible application. I need to have ability to perform the following:
Go to the following page.
Click button.
Take a screenshot and save it.
I want to create an application that will test a site by going by URL, take a shots, and then send the images to the email.
Does anybody has an experience in solving such problems?
Watin can capture screenshots:
ie.CaptureWebPageToFile("c:\tmp\watin main page.jpg");
More info:
http://watin.sourceforge.net/releasenotes-1-2-0-4000.html
http://fwdnug.com/blogs/ddodgen/archive/2008/06/19/watin-api-capturewebpagetofile.aspx
I am a contributor to the WatiN project and the author of the WatiN Test Recorder. To do what you want, I'd suggest using something like csExWB2 (http://code.google.com/p/csexwb2/). The demo will give you the basic browser, and you can add screen shots where you like. Emailing is not covered, but that should be fairly easy.
I know this is very old post but i want to leave a message for visitor of this post.
PhantomJS is one option (http://www.phantomjs.org).
According to the WatiN features page:
Supports creating screenshots of webpages
I would direct you to more specifical documentation, but the documentation web doesn't work well with Firefox, so I can't search it.