bro when i use take screenhot as type cast after that only the getscreenshot method is showing and Filehandler.copy also not accepting bro kindly clear the query bro
U r using webdriver to create driver right ? U should we chromedriver or remotewebdriver class to create driver object, in that case casting is not required. File handler should work on both the cases.
if you are using webdriver driver = new ChromeDriver(); then that is required since we are using the class itself it is not necessary. Please refer my interface and inheritance video, there I have explained this
@@letcode now working thanks bro. Could you please explain. why I cannot use webdriver. previously I used webdriver for another video eg (handling inputs) that time no error found like thia. How this happened. I expect your valuable ans bro.
Trying to capture particullar element screenshot but I am getting unsupported CommandException. In this line : (File srr= element.getScreenshot(Output type.FILE))
WebElement ele = driver.findElementsByXPath("//img[@decoding='async'][@alt='jack.jpg']"); when i use this iam getting this error "can not convert from List to webelement" How to solve this?
@LetCode with Koushik Super bro.. Iniku indha episode full ah learn panniyachu..! Thanks for your efforts..!
You are excellent... it's very useful for me. thank you sir
Thank you 😊
thank to clear the screen short
Dumb doubt-why havent you used "FILE" for img3,like for driver and element screenshot file elesrc is used but for section screenshot only elesrc
I'm passing directly, that's the only difference.
Passing objects is also the same.
👌👌👌👌👌👌 Good explanation bro
Super bro
Simply completed 👌
Bro main method la throws exception enaku varala... And file util copy panniten lib la.. Then reference lib la kamikala
Bro kandipa throws varum illana try catch podanum.
How can I save screenshots in other than this project folder? How should I give the system destination folder paths in the code?
"C://somefolder"
Like this u can give
bro when i use take screenhot as type cast after that only the getscreenshot method is showing and Filehandler.copy also not accepting bro kindly clear the query bro
U r using webdriver to create driver right ?
U should we chromedriver or remotewebdriver class to create driver object, in that case casting is not required.
File handler should work on both the cases.
Bro same flow methods use panni eppdi execute pannanum nu video upload pandringala? Nan try panna but etho mistake pandran..
Framework videos la cover panni irukan bro
@letcode ok thanks 🙏
Thanks
🍕
bro, na selenium 4.18.1 maven version use panra , getscreenshotas() enaku vara mattikidu? enna pannanum?
Use chromedriver driver = new chromedriver
@@letcode thanks bro
amazing
Thank you brother 😊
getscreenshot key is not show my eclipse what will do
How will i get that comment
Use Chronedriver driver = new chronedriver, if u use webdriver it won't come.
In OutputType.FILE...'FILE' is showing error.
Import output type correctly bro
Is it no more necessary to use the TakesScreenshot interface? are there any differences using/not using it?
if you are using webdriver driver = new ChromeDriver();
then that is required since we are using the class itself it is not necessary.
Please refer my interface and inheritance video, there I have explained this
Bro driver. kudutha apuram "getscreenshotas" function varala vera name change aaiducha?
Don't use webdriver driver = new chrimedriver
Use chrimedriver driver = new chrimedriver
@@letcode now working thanks bro. Could you please explain. why I cannot use webdriver. previously I used webdriver for another video eg (handling inputs) that time no error found like thia. How this happened. I expect your valuable ans bro.
I was about to ask this very same question today 😁... But, alas, you have already done this 👍
@@tsiporche 😁
Same problem now i got
👌👌👌
Thank you 😊
How to take different url screen shot without changing the file name?
I didn't understand bro, what u have to do ?
@@letcode bro I want take two different website page in single class without changing the file name
Bro i guess it's not possible.
Hi bro, can take screenshot every 1 sec?
Not a good idea, we can take screenshots for every tests.
I need take screenshot result like(0.5 sec 10% loaded and 1 sec 20℅ loaded etc..)
Ok, u can use a loop. With in loop add thread.sleep 500
Then take the screenshot.
Sir, Do we have a syllabus?
Not the complete syllabus now. When ever I make videos I add that in the PPT, so that you'll understand the continuity of the courses and videos.
Ok sir , need a xpath videos sir
th-cam.com/video/ppnDfNuSjro/w-d-xo.html
It's in english, let me know if it's need in tamil
If it is not clear I will ask bro
Trying to capture particullar element screenshot but I am getting unsupported CommandException.
In this line :
(File srr= element.getScreenshot(Output type.FILE))
It's not related to screen shot, I think u r finding the wrong element or may be passing wrong element type.
It is not .getScreenshot it is .getScreenshotAs
Bro date and time stamp oda screenshot edukalama?
Yes bro, Java date function use panni pannalam.
🖖🏼💯
🤗
Every Time I will Change img name automatic ah change agatha
No bro, math.random use panni, dynamic ah change pannalam
@@letcode Yes Bro Got it Tq
You can use math.random. For eg. int randNum = (int) (Math.random() * MAXVALUE);
Pay panni padikuratha vida.. theliva explain pandringa...
Nandri 😃
@@letcode FileUtils and FileHandler difference yenna bro
Without changing the name of screen shot how can we get multi screenshot
Same name with replace the existing one.
So you can take screenshot with different name
driver.getscreenshoots error throw pannuthey?
Webdriver driver = new chromeDriver pota error varum.
chromeDriver driver = new Chrome driver
Nu pota error varadhu
WebElement ele = driver.findElementsByXPath("//img[@decoding='async'][@alt='jack.jpg']");
when i use this iam getting this error "can not convert from List to webelement"
How to solve this?
U r using find elements method that will return list.
Use find element to get a single web element
@@letcode perfect 💥