c# - Take a page shoot with Selenium Web Driver -


question , answers on take screenshot selenium webdriver contain excellent description how take screen shot selenium web driver using different languages.

i drive web driver python , c# , set of different browser drivers.

for example if screenshot taken phantomjs headless browser python, full page shot.

in c# screenshot not directly provided driver method, bit of code needed (see above mentioned question , suggested c# solution).

however, c# recipe albeit working taking screen shot, not looking for.

the problem c# recipe takes screen shot, , looking how take full page shot. screen shot expected seen on screen, , browser pages larger screen. in many cases shot taken shall page shot.

this question differ quoted 1 in subtle question detail makes difference in result. guess solutions page shoot different languages welcome here.

screenshots in current webdriver api defined full-page screenshots. when take screenshot via webdriver, should getting them of full page, no matter language (python, c#, java, etc.) use. having said that, there caveats note.

for ie driver, if run on 64-bit windows, , use 32-bit iedriverserver.exe, you'll see screenshots truncated maximum size of display resolution of system, overflow black portions of image. due limitations of windows hook procedures used allow ie driver create full-page screenshots. more in-depth detail can found in blog post author of ie driver.

the driver chrome provides screenshots of visible view port. known issue of driver, , has been time, , cannot fixed due underlying bug in chrome browser itself.

the architecture of safari driver doesn't allow full-dom screenshots. due limited nature of extension points provided safari browser, it's unlikely change.

finally, of discussion screenshots relevant current webdriver implementations. w3c working group creating webdriver spec has decided screenshots should of visible view port, behavior change in future, , only allow screenshots of view port.


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -