How to save screenshot to Word document in Selenium | Apache POI | automateNow

  Рет қаралды 3,135

automateNow

automateNow

Күн бұрын

Пікірлер: 26
@pabbureddy3567
@pabbureddy3567 3 жыл бұрын
I became big fan of you sir
@automateNow
@automateNow 3 жыл бұрын
Thank you so much for your support Pabbu! 🙌
@ManishYadav-in7ml
@ManishYadav-in7ml 3 жыл бұрын
Great..
@automateNow
@automateNow 3 жыл бұрын
Thank you!
@ManishYadav-in7ml
@ManishYadav-in7ml 3 жыл бұрын
@@automateNow will follow you for learning new things..thanks for sharing these knowledge..
@automateNow
@automateNow 3 жыл бұрын
My pleasure. Thank you for your support!
@benkosmarcus
@benkosmarcus 3 ай бұрын
Good video, can I do the same with playwright?
@yogeshlad77
@yogeshlad77 3 жыл бұрын
Hi sir can you tell how to add picture in Excel file? using NPOI
@automateNow
@automateNow 3 жыл бұрын
Hi Yogesh. At the moment, I'm not doing .NET-type videos since there isn't a lot of demand for them. But I'll keep you request in mind for future videos. Have a look here in case it helps. www.codeproject.com/Articles/1241654/Export-to-Excel-using-NPOI-Csharp-and-WEB-API
@lokendernathmudiraj2668
@lokendernathmudiraj2668 3 жыл бұрын
Nice Video, I need help in adding screeenshots in word document one by one, I tried above code it getting old screenshot replaced with new screesnshot. Please help
@automateNow
@automateNow 3 жыл бұрын
Hi Lokendernarh, thanks for your request. I'll update the source code on GitHub to meet your needs and let you know when you can try the new code.
@automateNow
@automateNow 2 жыл бұрын
Hi Lokendernath, please see the latest video that answers your request. kzbin.info/www/bejne/jGe0g3iVmbN4bqs
@pratikbhowmik
@pratikbhowmik 2 жыл бұрын
can you create a video on test driven development , but please make a video on how to integrate with utility class so that the whole test driven development is generic
@automateNow
@automateNow 2 жыл бұрын
Hi Pratik, thank you for your request. This channel mainly focuses on automated testing, but I'll take your request into consideration for future planning.
@VishalSingh-we6zx
@VishalSingh-we6zx 3 жыл бұрын
I am getting blank screenshots , Any help will be appreciated
@automateNow
@automateNow 3 жыл бұрын
Hi Vishal. Are you using the source code from automateNow's GitHub page or are you using your own code?
@pabbureddy3567
@pabbureddy3567 3 жыл бұрын
I need help sir, recently I saw your ur video regarding to get screenshot when soft assertion fails, but my query is suppose if 2 soft assertion fails how can I get 2 screenshots in pom framework, currently am getting only one screenshot which is 2 nd assertion fail
@automateNow
@automateNow 3 жыл бұрын
Hi Pabbu, thank you for your question. Here I am providing a link to where you can get the source code used in the video that you are referring to. If you run the same test that I use in the video, you will see that two screenshots are taken; one for each of the assertion failures. I hope this helps but please feel free to reach out if you are still having trouble. github.com/automatenow/general-webdriver
@shrach8
@shrach8 8 ай бұрын
I think you shoudlve explained the following code: TakeScreenshot screenshot = (TakeScreenshot) driver; File file = screenshot.getScreenshortAs(OutputType.FILE); a bit more in detail.
@automateNow
@automateNow 5 ай бұрын
Here is an explanation of the code: TakeScreenshot screenshot = (TakeScreenshot) driver; = TakeScreenshot is an interface in Selenium that provides a method to capture a screenshot. This line of code casts the driver (which is an instance of WebDriver) to the TakeScreenshot interface. This allows you to use the getScreenshotAs method, which is not available directly through the WebDriver interface. File file = screenshot.getScreenshotAs(OutputType.FILE); = getScreenshotAs(OutputType.FILE) is a method of the TakeScreenshot interface that captures the current screenshot and stores it in a File object. OutputType.FILE specifies that the output of the screenshot should be in the form of a File. The method returns a File object that represents the screenshot captured.
@pabbureddy3567
@pabbureddy3567 3 жыл бұрын
HI sir, am getting error at line , Path screenshotsPath = Path.of("./failed_tests/"); especially error at text 'of', here is the error message - The method of(String) is undefined for the type Path, any idea? is this code works with only selenium 4 version
@pabbureddy3567
@pabbureddy3567 3 жыл бұрын
Sorry working fine now after some changes, thanks
@automateNow
@automateNow 3 жыл бұрын
Thanks for letting me know Pabbu. I'll make sure the code is working properly.
@VishalSingh-we6zx
@VishalSingh-we6zx 3 жыл бұрын
@@pabbureddy3567 what changes have you made,since I am getting same issue
@automateNow
@automateNow 3 жыл бұрын
Hi Vishal, what version of Java are you using? I'm using 17 and it's working fine.
@benkosmarcus
@benkosmarcus 3 ай бұрын
Good video, can I do the same with playwright?
How to Capture Screenshot in Selenium Webdriver
26:03
Mukesh otwani
Рет қаралды 201 М.
快乐总是短暂的!😂 #搞笑夫妻 #爱美食爱生活 #搞笑达人
00:14
朱大帅and依美姐
Рет қаралды 14 МЛН
How to Fight a Gross Man 😡
00:19
Alan Chikin Chow
Рет қаралды 20 МЛН
I thought one thing and the truth is something else 😂
00:34
عائلة ابو رعد Abo Raad family
Рет қаралды 14 МЛН
Selenium WebDriver Tutorial #38 - How to Take Screenshot in Selenium
14:42
Software Testing Mentor
Рет қаралды 64 М.
Ukraine has nuclear weapons? / Important statement
11:20
NEXTA Live
Рет қаралды 339 М.
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 64 МЛН
How to take multiple screenshots in selenium webdriver?
12:50
Programmer World
Рет қаралды 825
Capture Screenshots using Selenium WebDriver | Selenium WebDriver |
19:44
How to record Selenium Test Execution Video || Monte ScreenRecorder API
19:40
Naveen AutomationLabs
Рет қаралды 27 М.
چطور کارهای‌مان را به تعویق نیاندازیم؟
16:37
Part 1 : Downloading & configuring Apache POI
3:37
Magnetic Automation and Learnings
Рет қаралды 15 М.
快乐总是短暂的!😂 #搞笑夫妻 #爱美食爱生活 #搞笑达人
00:14
朱大帅and依美姐
Рет қаралды 14 МЛН