ExplicitWait, Take Screenshot and Navigate Back & Forward - Selenium WebDriver Session 7

  Рет қаралды 128,543

Naveen AutomationLabs

Naveen AutomationLabs

Күн бұрын

Пікірлер: 75
@aspp8137
@aspp8137 4 жыл бұрын
Hi Naveen, I just attended selenium interview and they asked me to write the code for taking screenshot . Your videos of selenium are superb and easy to understand. Eventhough i am a manual resource and recently i went through your videos and learnt selenium with my own interest and trying to attend interviews where i am gaining my confidence levels to answer. This was the first time i am attending selenium interview ,even though i know basic things i could not remember the code for entire selenium. I am practicing now and referring your videos which gives me boost my confidence. Thank you so much and keep uploading videos on new technologies. I will refer my friends . Hats off to you. No words to say.
@abhishekcardigan3770
@abhishekcardigan3770 3 жыл бұрын
Hey Archana. How can I get in touch with you? Wanted to ask you about the interviews.
@naveenautomationlabs
@naveenautomationlabs 7 жыл бұрын
Subscribe to my channel for more videos on Selenium-Java, Junit, TestNG, Cucumber, Jenkins, Maven, SOAP UI and many more... kzbin.info/door/XJKOPxx4O1f63nnfsoiEug?view_as=subscriber
@saifulislam87
@saifulislam87 5 жыл бұрын
Hi Naveen, thank you so much for your hard work and your valuable time .Really appreciate your time and hard work. Your explanation is very simple and easy to understand. Please keep it up good work bro👏
@goldfan5523
@goldfan5523 6 жыл бұрын
Hi Naveen Sir, You taught some methods like Contains(),Starts-With.,Ends-With..in your dynamic xpath creation video and there is one more video of yours on customized xpath in which you covered iterating tables in which you covered preceding-sibling and following-sibling properties. Do you have anymore videos on tables which covers some more properties and is there any way to get rid of StaleElementException Thanks for all your videos :) Thanks in advance
@amitbhardwaj7824
@amitbhardwaj7824 4 жыл бұрын
nice explain perfect tutorial for selenium automation
@Laxman_p11
@Laxman_p11 6 жыл бұрын
Hi Naveen, small doubt.. Any how implicitly wait is waiting for 40 seconds if explicit wait(5) suppose element is not found. then implicitly wait can handle this right..? Here can u pls elaborate bit more on diff between implicitly wait and explicit wait.. Thanks in advance.
@abhishekcardigan3770
@abhishekcardigan3770 3 жыл бұрын
Did you get the answer to your question?
@Laxman_p11
@Laxman_p11 3 жыл бұрын
@@abhishekcardigan3770 no
@varshab9967
@varshab9967 6 жыл бұрын
Hi Naveen, Your videos are very nice. Your way of explanation is straight to the point and neat.Thank you so much for sharing ur knowledge. If we declare implicit wait, it is applicable to all elements in the web page.Then what is the purpose of declaring explicit wait?What is the difference between these 2 waits?Kindly reply.Also please make a video on manual testing FAQ's or manual testing imp topics...JMeter and other imp topics.
@Bharathvlr
@Bharathvlr 5 жыл бұрын
Hi Naveen, Thanks for the classes. I have a doubt. on your 'Navigations' code there was "driver.manage().window().maximize();" but while testing your window didn't get maximized, did any one noticed ? please clarify..
@sajjanchourasia
@sajjanchourasia 5 жыл бұрын
Yes it was not maximized
@sasirekha5561
@sasirekha5561 5 жыл бұрын
super catch. true tester
@pranithanalluri1267
@pranithanalluri1267 3 жыл бұрын
Even i had the same doubt..did Naveen reply to your comment
@sowmyareddy3134
@sowmyareddy3134 6 жыл бұрын
Hai Naveen, Your videos are great.. I have a question for this video..I understood how to navigate from one webpage to another by using navigate to but how can we open it in a new tab? ie., opening google is my first function and I wanted to open amazon web page in a new page..How can i perform this operation? Please help me out with this question
@sridhar2127
@sridhar2127 7 жыл бұрын
What is the difference between implicit wait and explicit wait?
@shwetapandey2406
@shwetapandey2406 5 жыл бұрын
Best videos I saw yet
@jayantirajesh
@jayantirajesh 4 жыл бұрын
hi naveen..this video is really helpful..now the selenium version has changed right so will be any change in API 's??
@sandipanmallick6141
@sandipanmallick6141 6 жыл бұрын
Hi Naveen...Thanks for this video. I am facing one problem. When i'm going back to the previous page using driver.navigate().back() then it's going back to the previous page that is working fine. But if the previous page has s then the previous page loads only the part not the whole page after clicking on browser back button. It's throwing org.openqa.selenium.StaleElementReferenceException. Can you please help me how to resolve this issue?
@hakimakbary65
@hakimakbary65 3 жыл бұрын
I am not sure but I think if you are following page object model, this pblm will be resolved. I think stale element exception is not thrown when you are using @FindBy to locate your elements (not sure)
@priyasingh-ko8ki
@priyasingh-ko8ki 5 жыл бұрын
vedio is also very good
@naveenautomationlabs
@naveenautomationlabs 5 жыл бұрын
Thanks for watching
@shuchisinha1701
@shuchisinha1701 4 жыл бұрын
Hi Naveen, i had started watching your videos.....Please could you send me the link of your code because i want to increase the font-size and to copy the takescreenshot lines.
@desifoodie8371
@desifoodie8371 3 жыл бұрын
One quetion, here in CLickon fucntion, how we are understanding that the timeout provided is seconds only, in function we have not declared anywhere TimeUnit.seconds .Thanks
@riteshc56
@riteshc56 6 жыл бұрын
Hi Naveen, The page of cities and state is not displayed. but all the videos are really helpful Thanks a lot.
@aveasphotography
@aveasphotography 3 жыл бұрын
@5:37 time....When u ran the script and the driver.manager().windows().maximize() line didnt work.....U can still see the window in small size...May i know why that didnt work???
@rahulshimpi8914
@rahulshimpi8914 6 жыл бұрын
Greate video. Thank you so much for providing information.
@suyogratnaparkhi1942
@suyogratnaparkhi1942 4 жыл бұрын
Hi, I am using mac machine. It is giving me error as "Exception in thread "main" java.io.IOException: Destination '/Users⁩/⁨suyog.ratnaparkhi⁩/Downloads⁩/⁨MySelenium⁩/screenshots' directory cannot be created.
@niteshrawat576
@niteshrawat576 6 жыл бұрын
Hi Naveen, Me once again , hope you dont mind. "33:10" I am getting the "no such element..invalid xpath..." error instead of "waiting for element to be clickable" error. Please help we know why. Thanks.
@WayToAhlulbayt
@WayToAhlulbayt 6 жыл бұрын
tried this but keep getting error not working for me File src = ((TakesScreenshot) driver).getScreenshotAs(OutputType.FILE); FileUtils.copyFile(src, new File("C:\Users\Owner\Desktop\selenium classes"));
@sanchitgandhi7551
@sanchitgandhi7551 5 жыл бұрын
you have to mention file name be it .jpg or .png , anything. So, the updated path for file would be ---> C:\\Users\\Owner\\Desktop\\selenium classes\\google.png
@manikantar8614
@manikantar8614 6 жыл бұрын
Is there any online compiler for practice Selenium
@priyasingh-ko8ki
@priyasingh-ko8ki 5 жыл бұрын
i love ur voice
@naveenautomationlabs
@naveenautomationlabs 5 жыл бұрын
Thanks
@kanikagupta8534
@kanikagupta8534 2 жыл бұрын
Sir, while giving explicit wait command, I am getting an error. new WebDriverWait(driver, timeout).ignoring(StaleElementReferenceException.class) Multiple markers at this line - The constructor WebDriverWait(WebDriver, int) is undefined - Line breakpoint:ExplicitwaitConcept [line: 28] - clickOn(WebDriver, WebElement, int)
@divyadharshini5741
@divyadharshini5741 2 жыл бұрын
I am also getting the same error. It is instructing me to change the declaration int to duration. If I change so it is not accepting the value 20 secs.
@akulabhaskar3797
@akulabhaskar3797 6 жыл бұрын
Hello Naveen What could be the reason for not getting Exception after 20 Seconds ?
@praveen420ify
@praveen420ify 7 жыл бұрын
What do U mean external URL? I mean what is difference between external URL and Normal URL?
@ST-jl6jf
@ST-jl6jf 6 жыл бұрын
excellent videos
@gauravgarg8777
@gauravgarg8777 3 жыл бұрын
FileUtils not working use the below line.. File src = ((TakesScreenshot) driver ).getScreenshotAs(OutputType.FILE); FileHandler.copy(src, new File("C:\\Users\\Gaurav\\Downloads\\hello.png"));
@akshaymore5655
@akshaymore5655 3 жыл бұрын
thanks bro
@619ANKUR
@619ANKUR Жыл бұрын
Thanks a lot @gauravgarg8777 it worked for me too ☺️☺️
@gangabhavaniakepati4335
@gangabhavaniakepati4335 4 жыл бұрын
Hi Naveen, Thank you so much for the video and one question on this somehow could not able to import FileUtils.copyfile is there any way to fix it ??
@animadey3267
@animadey3267 4 жыл бұрын
you need to download org.apache.commons.io.jar and add in selenium
@gokusaiyan6809
@gokusaiyan6809 4 жыл бұрын
FileHandler.copy(src, path) will also work
@saicharanreddyb
@saicharanreddyb 2 жыл бұрын
@@gokusaiyan6809 This is working
@gopal77namasivayam
@gopal77namasivayam 4 жыл бұрын
Hi Naveen, fileutils cannot be resolved while taking a screenshot when google . it says the latest version doesn't support FileUtils..pls help
@shankarpk89
@shankarpk89 3 жыл бұрын
Files.copy(source file, destination file);
@monikadaharwal218
@monikadaharwal218 4 жыл бұрын
Hi, how we can solve this error?[ Exception in thread "main" org.openqa.selenium.TimeoutException: Expected condition failed: waiting for element to be clickable: By.id: email (tried for 30 second(s) with 500 MILLISECONDS interval) ] please reply
@amitsingh-gr7mf
@amitsingh-gr7mf 6 жыл бұрын
hi Naveen , m not able to take the screenshot with the code which you have given.. Could you please help me in this
@BhardwajFamily1
@BhardwajFamily1 5 жыл бұрын
try like below:File src=((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);FileHandler.copy(src, new File("C:\\Users\\google.png"));
@kaivi-di6vs
@kaivi-di6vs 5 жыл бұрын
Hi Naveen Sir, i tried your code for screenshot but its not working. the error shows and says -the method copyFile(File, File) in the type FileUtils is not applicable for the arguments (File) FileUtils.copyFile(src,new File(C:\Users\km\eclipse-workspace\seleniumcodespractice\src\demosel1\screenshot\google.png); can you tell what i did wrong here? or way to fix it? thank you in advance.
@soujanyaambati4251
@soujanyaambati4251 5 жыл бұрын
Instead of FileUtils.copyFile(), use FileHandler.copy(), it will work.
@ashujosson6433
@ashujosson6433 5 жыл бұрын
@@soujanyaambati4251 Mine still not working
@sanchitgandhi7551
@sanchitgandhi7551 5 жыл бұрын
FileUtils.copyFile(src,new File("C:\\Users\\km\\eclipse-workspace\\seleniumcodespractice\\src\\demosel1\\screenshot\\google.png"); try with this command, it should work, why 2 \ is because java understand single \ as ASCII character (like we use it for \t), in order to make java understand that we are providing a valid folder path, we need to mention the path with 2 '\'
@leenpalak
@leenpalak 4 жыл бұрын
@@sanchitgandhi7551 thanks its now working fine with one \
@tufbro9708
@tufbro9708 3 жыл бұрын
Hi how to use setsleep in cucumber frame work
@hakimakbary65
@hakimakbary65 3 жыл бұрын
In my case, the question about take screenshot is a bit harder! Suppose you go to a page, click on a link and a popup is displayed. You have to take screenshot of only that popup (not the whole page). Anyone knows how to do it? I know that it is possible with Python but I want to do it with Java. Any suggesstion how to do it?
@niteshrawat576
@niteshrawat576 6 жыл бұрын
Hi Naveen , The FileUtils statement is no prompting to add IOException ,instead FileUtils cannot be resolved.I have checked and matched my code with your several times but unable to find the solution. Please can you help? Thanks in advance!\ Awesome Vids btw :)
@sunnykartikeya
@sunnykartikeya 6 жыл бұрын
It's FileHandler.copy(File, File) now. It'll work for sure :)
@BhardwajFamily1
@BhardwajFamily1 5 жыл бұрын
Great, I tried it and its working
@myfocus7447
@myfocus7447 7 жыл бұрын
thanks for sharing
@naveenautomationlabs
@naveenautomationlabs 7 жыл бұрын
+Jyoshna Manubolu thanks jyoshna
@bihari1422
@bihari1422 2 жыл бұрын
Just checked now: "Its still waiting" Date:11March 2022 Please update ur date accordingly :) #Just_for_fun
@romidey2991
@romidey2991 2 жыл бұрын
while taking screenshot, I need to use FileUtils.copyFile. and import org.apache.commons.io.FileUtils; but these are not working now, unable execute, Naveen Sir please help
Handle Browser Pop Up Window (using Window Handler) in Selenium - Session 8
34:26
Naveen AutomationLabs
Рет қаралды 171 М.
How to find broken links & Images using Selenium Webdriver
45:35
Naveen AutomationLabs
Рет қаралды 99 М.
One day.. 🙌
00:33
Celine Dept
Рет қаралды 49 МЛН
From Small To Giant 0%🍫 VS 100%🍫 #katebrush #shorts #gummy
00:19
FOREVER BUNNY
00:14
Natan por Aí
Рет қаралды 33 МЛН
ТВОИ РОДИТЕЛИ И ЧЕЛОВЕК ПАУК 😂#shorts
00:59
BATEK_OFFICIAL
Рет қаралды 6 МЛН
P26 - Capture screenshots for only failed tests in TestNG | TestNG |
47:47
How to handle Bootstrap DropDown in Selenium - Session - 19
38:12
Naveen AutomationLabs
Рет қаралды 91 М.
How to Handle Dynamic WebTable - WebDriver Session 14
33:42
Naveen AutomationLabs
Рет қаралды 202 М.
How to Capture Screenshot in Selenium Webdriver
26:03
Mukesh otwani
Рет қаралды 201 М.
Selenium WebDriver Tutorial #38 - How to Take Screenshot in Selenium
14:42
Software Testing Mentor
Рет қаралды 64 М.
Wait for File Download using FluentWait in Selenium
14:54
Naveen AutomationLabs
Рет қаралды 10 М.
How to Become Genius in XPath in Selenium  - Session -18
39:48
Naveen AutomationLabs
Рет қаралды 727 М.
How to Generate Log Files in Selenium using Log4j API
32:50
Naveen AutomationLabs
Рет қаралды 118 М.
TestNG Tutorial #16 - How to Capture Screenshot for Failed Tests in TestNG
18:22
Software Testing Mentor
Рет қаралды 31 М.
How to handle Alerts in Selenium WebDriver
14:53
H Y R Tutorials
Рет қаралды 47 М.
One day.. 🙌
00:33
Celine Dept
Рет қаралды 49 МЛН