How can I take a screenshot of the full web-page (including non-visible parts) with Selenium/WebDriver using c# and the ChromeDriver?  So that is full page, including elements that are not in view, but for which you need to scroll down.  Here is my current code:   Screenshot capture= ((ITakesScreenshot)driver).GetScreenshot();  capture.SaveAsFile(@"D:\FilePath\screen1.jpeg");
46008
How to take screen shot on both test cases "Positive and Negative" results?  NOTE: Currently, I am working in selenium webdriver (junit) and I did not have an idea about how to code for adding methods to take screen shots.
95526
Some programs in the Software Center lack screenshots. Is there a way to add them?  Idea: It would be nice if there was some sort of button Add Screenshot under the "no screenshot" area
93974
How do you take a screenshot of the Touch Bar on the new MacBook Pros?   Specifically, I need a way to take a picture similar to using Grab or the shortcut Cmd+Shift+3.
87196
Whenever I try to take a screen-shot (in my Ubuntu 12.04 box ) with the global menu, context menu for any window/file, it doesn't work. I don't seem to be able to take snapshots with menu dropped down. How do I get this fixed?  PS. The problem is in both Unity and Gnome3 environments.
71510
I'm trying to create a program to clone multiple bugs at a time through the web interface of our defect tracking system.  How can I wait before a page is completely loaded before I continue?  //This is pseudo code, but this should give you an idea of what I'm trying to do.  The //actual code uses multi-threading and all that good stuff :). foreach (string bug in bugs) {     webBrowser.Navigate(new Uri(url));     webBrowser.Document.GetElementById("product").SetAttribute("value", product);     webBrowser.Document.GetElementById("version").SetAttribute("value", version);     webBrowser.Document.GetElementById("commit").InvokeMember("click");      //Need code to wait for page to load before continuing. }
103897
I really would like to use Chrome/Chromium, but what I am missing hardly is a bookmark panel, which is shown all the time, like in Firefox and in most other browsers. By "bookmark panel" I mean the tree that lists all bookmarks and that is displayed on the left side (what you get when you press CTRL + B in Firefox, Firefox calls it a "Sidebar").   I couldn't find a extension for that. Does some has an idea?
42096
How can I take a screenshot in X.org?  I am unsure if the Print Screen button will "just work" and I don't know how I would go about testing it.
31014
I have a requirement that an application I am working on prevent the user from being able to easily capture the contents of the screen.  I have communicated that there is no feasible way to completely prevent this from happening, but I'm looking for methods to introduce some hurdles to the process.  I'm using C#/.NET 2.0 and WinForms
66188
On a windows 7 computer how might one set the desktop to be a webpage. I want to have a local html file that I can edit as needed. Then windows should show that file as the background for the desktop but I should be able to click on links and interact with the page. Certain links would launch certain programs.   So I want to go this route because there is no way that I know to corral a group of icons to a certain part of the screen. When I disconnect and reconnect monitors and such things move around. No icons are forced to stay in part of the group they are supposed to be a part of. At this point I just have folders on the desktop with the app links in those folders. This means I have to open multiple folders to get where I want.   Any ideas on the html angle or other ideas on how to accomplish this?  thanks,  bye.
64631
I would like to compare a screenshot of one application (could be a Web page) with a previously taken screenshot to determine whether the application is displaying itself correctly. I don't want an exact match comparison, because the aspect could be slightly different (in the case of a Web app, depending on the browser, some element could be at a slightly different location). It should give a measure of how similar are the screenshots.  Is there a library / tool that already does that? How would you implement it?
8774
&lt;div id="findingTblBody" class="tablebody" infinite-scroll-distance="2"  infinite-scroll="loadMoreData()" style="width: 819px;"&gt;   I want to scroll to the bottom of div mentioned above.     I am trying with this -   do {     driver.findElement(By.xpath("//div[@id='findingTblBody']")).sendKeys(Keys.PAGE_DOWN);     Thread.sleep(6000);     scroll_count++; } while(scroll_count&lt;20);   I am receiving error as - org.openqa.selenium.WebDriverException: unknown error: cannot focus element  How to scroll my web page up to that element &amp; click?
92081
I am a beginner in Selenium WebDriver (Java with TestNg). I'm trying to create a framework of my own.  My question here is what would be the better option to store my objects (basically all the webelements of my website under test), Page Object Model or External Property file? Why? Is there a better method than those? Please help.
10200
Basically I with my team are figuring out a way to block screenshots taken on our corporation's computers (Mac mostly). I have searched it extensively and found that there is something called Screen buffer which is being accessed by any screenshot taking software (eg. Snipping Tool etc). I tried to find the exact mechanism and the actual implementation of such softwares but with no luck. Also I found out that Netflix uses some kind of technology which corrupts screenshot image and blackens it. I did not find any actual mechanism or implementation to study it further. I also came across something called Hardware overlays but did not understand it properly in order to use it for actual implementation. I have considered a way to edit scancode maps in registry but I am looking for a more general way. I read a few articles for apple's FPS though. Can somebody please guide me through this? Some good resources for the same would be highly appreciated. Any particular or relevant forums or subs to discuss this are also welcome
966
For testing the visual appearance of a website the use of tools like selenium (functional surface test) is not sufficient because it doesn´t check the visual appearance and/or the CSS-Code directly. Different approaches are possible   Defining style guides Syntax checking of CSS and HTML DOM comparison Screenshot comparison   How do you check the visual appearance of websites from a web-application?   I implemented a screenshot comparison tool in Java. Screenshots are generated by a framework based on selenium. I started with pixel by pixel comparison. Actually I split the screenshot into different parts (maybe 10x10 rectangles) and compare the histograms of corresponding parts. For the future I want to determine relevant parts (regions of interest) automatically. Maybe someone has ideas how to do that.
112997
I have a situation where I have to check the download link to make sure when someone clicks the link download is going to kick off and the product will be downloading, Is there anyway that we can do that using Selenium WebDriver?
54448
When automating UI tests with Selenium, it is often not absolutely clear what method and what locator to use to locate an element. Some locators are less reliable, less readable than others. And, usually, there are a lot of options to get to a desired element.  To be specific, here are some things we've enforced (with ESLint) in our UI test automation project (using Protractor for testing an AngularJS application):   no bootstrap classes used inside CSS selectors (the idea is to use as less UI/layout-specific things to locate elements as possible) no internal angular classes inside CSS selectors - things like ng-scope or ng-binding are pure-technical and should not be used inside locators do not use "xpath" unless absolutely necessary (encouraged by this )   The Question:  What other recommendations are there for locating elements in Selenium?
106876
I want to locate element TableHeader which is inside a form table, it has the following page structure:   &lt;form&gt;    &lt;table id="topNavigation" cellspacing="0" cellpadding="0" border="0" width="100%"&gt;      &lt;div class="PageContent"&gt;        &lt;table cellspacing="0" cellpadding="0" border="0" width="100%"&gt;          &lt;tbody&gt;            &lt;tr&gt;              &lt;td class="TableLeftCor"/&gt;             &lt;td class="TableHeader"&gt; Main &lt;/td&gt;              &lt;td class="TableRightCor"/&gt;           &lt;/tr&gt;          &lt;/tbody&gt;       &lt;/table&gt;        &lt;table cellspacing="0" cellpadding="0" border="0" width="100%"&gt;       &lt;div id="copyright"&gt;        &lt;/div&gt;  &lt;/form&gt;   Can u please help how to locate table-header using driver.switchTo().frame().