Test cases for screenshot in manual testing - testing

what are the test cases for capture screenshot in manual testing?
Capture screenshot

On the High level there can be a single one-liner scenario:
Validate the user is able to capture the screenshot.
However, if you want a detailed test case then you can write like this:
Validate user is able to capture the screenshot using the available functionality.
a. Crosscheck the details displayed on the captured screenshot with details displayed on the webpage, it should match.
Validate users can capture screenshots using web-based tools(browser extensions) as well as the inbuilt tools available on the machine.

Following links will help you for screenshot testing
Enter your URL and choose the OS and browser combination you want to use to create a screenshot.
You can examine your screenshots on the result page after clicking the capture.
Source: https://www.lambdatest.com/support/docs/automated-screenshot-testing/
If you're seeking for screencast automation testing, look at the source below.
https://www.browserstack.com/guide/take-screenshots-in-selenium

Related

Google+ snippet generator doesn't show code

Here developers.google.com/+/web/snippet/ it should be possible to generate Google+ snippet code. But it does not work, because the generated code is obscured by a div with the preview. See the screenshot made with Firefox (Chrome looks similar).
What is wrong? Is it a failure of the tool? Is there a working tool anywhere else?

Can i get screenshot of desktop using vuejs

i am working on tracking app using vue.js. I am a new developer.i wanna know is it possible to track mouse click and capture screenshots even if person is on desktop or any where else on browser
This has nothing to do with VueJs specifically. However, you can use HTML5/Canvas/Javascript to take a screenshot, but that's still experimental.
Take a look at this answer: Using HTML5/Canvas/JavaScript to take in-browser screenshots
i have found the solution
i followed the steps here
https://www.webrtc-experiment.com/getScreenId/
these steps allowed me the screen sharing on my webpage and then i use html to canvas to get the image of the video tag

simulating file download with selenium on chrome browser for element with reactid

I need to simulate file download on chrome browser and below links points to solutions which is what I'm looking for.
http://ardesco.lazerycode.com/index.php/2012/07/how-to-download-files-with-selenium-and-why-you-shouldnt/
https://github.com/Ardesco/Ebselen/blob/master/ebselen-core/src/main/java/com/lazerycode/ebselen/customhandlers/FileDownloader.java
I'm not able to use this code as it requires attribute and in my case button has a reactid which triggers a end point call. Please refer to attached screen shot.
Can somebody please tell what changes I need to do to make code in above links work ?
Thanks in advance.
Regards,
Vikram
To be able to download a link to need to find a way to get the link. The best way to do that is to talk to the developer that wrote the code and find out how it works.
Clicking on the button will trigger some sort of JavaScript event, you need to know what that event is so that you can replicate it to get the download link.
Bear in mind that this is probably not a test that's worth performing in Selenium., it's probably a unit test in JavaScript land.
Since you can't get the link of the downloadable file from the html and verify the https status code because in your case - the downloading happens by javascript method
The only way to verify downloading in your case is to actually click the element and verify that the file was downloaded.
You also need to set the capability in ChromeDriver to download to default directory without asking.
Chrome Web Driver download files

Is it possible to capture the text on the recaptcha image and type the same in a text box using selenium rc

It is required for me to capture the text present on the recaptcha image and type the same in a text box. Can any one please share me the solution how can we do this using selenium rc or webdriver and share me the code also using java.
You can not automate captcha, but there is some way to deal with captcha but for that human interaction is required.
There are two ways in which you can automate CAPTCHA
1.By break command
2.By input-box
For input box
String captcha = selenium.getEval("prompt("Enter Captcha")");
selenium.type("fieldId", captcha);
If it were possible, what would be the point of CAPTCHA images? If you bypass it in Selenium, what's stopping an attacker doing that? This is not possible, for very good reasons.
Instead just disable CAPTCHA for your test environment.
If it's possible to "cheat" in your test environment I would have the expected value added to a hidden field and pull from there.
There is additional solution i described here and it's to use CAPTCHA solver services API.
For example:
http://www.deathbycaptcha.com. You implementing their API, passing them the CAPTCHA and get in return the text.
Example for implementation here.

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.