Tip I Found Online If we have Input tag and Name Tag in a Upload Button We can use send keys to upload a file. Make sure You use double slash while copying the path in eclipse since java doesn't understand single slash. Hope it helps. By the Thank you for this Valuable tutorials Arul bro . Thank you
@kish_rish92 жыл бұрын
Thanks a lot for sharing this bro !
@deepikag1866Ай бұрын
thankyou sir for your effort u are such a great teacher
@abarnajayachandran12983 жыл бұрын
Hi Sir, java.awt epdi use pandrathu yethavathu configuration pananuma ..
@sujithkrishna053 жыл бұрын
Bettr we can use senkey to upload rght sir...single line we can upload
@cpraneesh12982 жыл бұрын
Hi sir, windows popup open aguthu but file location paste aga matingthu sir please reply sir help me
@NikuExplores2 жыл бұрын
அண்ணா can you tell selenium 4.6.0 vr dependency .
@ramyaramanujam45213 жыл бұрын
@ Learn Automation Online Sir..I have a doubt for using stringselection class.i can understand the usage of it but i need to know the difference between why we are using stringselection class instead of pasting the file path in setcontents. Please clarify.
@hariprasath32193 жыл бұрын
thank you sir it's a valuable video....................
@srinivasank1503 Жыл бұрын
Hi anna, thanks for all videos .learned a lot from u.same how we can do it in Mac bro..I tried several ways.i faces failures only.if any possible standard for Mac for file upload using robot class or any other options Anna ?
@celinemary33714 жыл бұрын
Thank you sir...Success
@Niceboy7245 Жыл бұрын
GoodMorning brother, I have one dout if we using this in jenkins how it work it cause exception for me in jenkins can you explain pls.
@Tom-dj9lyАй бұрын
Hi Arul bro, i feel this is complicated. other are using sendeys to upload thier files.
@sastikaselvam4 жыл бұрын
Hi sir, For me the link is not getting pasted in the opened window, no error is thrown! Can you please help me in this? Thanks.
@cpraneesh1298 Жыл бұрын
Hi sir Window popup open aguthu but paste aga matingthu solution kudunga bro
@packiavathymanickavelu36692 жыл бұрын
First time I am watching your video sir.. it is very useful and informative. Thank you
@CSPRAKALYANP9 ай бұрын
Hi Bro, In this Video, when I try clicking on the choose file, I am unable to do that using selenium, could you please help me out here. And also, I have checked in some browsers, they were leading me to use send keys to choose the file path and upload.
@hashirhasmy10422 жыл бұрын
.sendkeys("path of the file") kuduthalaum work pannuthu anna. is it new feature in selanium to upload a file using selanium
@gayumaniya43213 жыл бұрын
Hi I have one doubt.here selecting multiple key so shall I use keyschord
@karthickbaskaran57433 жыл бұрын
Hi bro, the browser is getting opened ... and click operation is not performed .
@manoanand1472 жыл бұрын
Hi sir, I was stuck in these uploading file concept, when try to keying toolkit can't find awt package and also reviewed all the comments since didn't get answer . please help me on this scenario....
@LifeLessionsAcademy3 жыл бұрын
Stringselection can not be resolved to a type... Pls reply pannunga, how to solve this problem.. Toolkit, robot is not not working
@abarnajayachandran12983 жыл бұрын
Robot class um epdi configure pananum solungaa sir
@divyavarman58585 жыл бұрын
I am using Linux machine, i am not able to find the file section whereas selecting the file is the only option. How to do selection?
@MrWeird-qu4ke3 жыл бұрын
Hi bro Awt package epdi bro import panna ??
@ParthiPlays3 жыл бұрын
cntrl +space press panna StringSelection,Toolkit nu entha proposals um varala bro
@rinuraj25664 жыл бұрын
Hi, I've tried several times this same program shows Invalid ArgumentException.? Could you Please Help!
@elakyad13842 жыл бұрын
Hi Sir, I can't use the StringSelection and Toolkit classes . Can anyone please help me with this please.
@mariasurekha79924 жыл бұрын
Hi... bro I tried to upload but it's not working... the browser is getting opened ... and click operation is not performed I didn't get any error also... xpath is also correct.. Then I tried using sendkeys ... it worked
@LearnAutomationOnline4 жыл бұрын
The website would have undergone some changes. If it's working then fine. U can try with some other websites to practice upload function without sendkeys
@ilavarasansriraman41404 жыл бұрын
Ex Panimalar students ellam "Learn Automation Online" channel thaan follow pandranga pola 😊..
@VenkatBalakrishaan3 жыл бұрын
Hi Sir, I can't use the StringSelection and Toolkit classes . In my libraries are classes are available, But I don't know how to use those classes in my project. In the quick fixes window shows that "StringSelection cannot be resolved to a type". Please help me out. Waiting for your reply !
@petchimuthu33083 жыл бұрын
Hi sir , how upload multiple files at a time..please tell me
@vaishnavipandiyan24763 жыл бұрын
is it common for mac_os
@sundharyuvi82214 жыл бұрын
Hi bro, How to can I upload multiple files. Please advice...
@hashirhasmy10422 жыл бұрын
Robot classukkum Action classukkum enna different. Why i am asking this robot also we handle keyboard and Actions class also we configure keyboad and mouse
@hashirhasmy10422 жыл бұрын
I think actions class we use for handle mouse and robot class we use for handle keyboard events. If i am wrong please correct me.
@Vijayakumar-xx3vy4 жыл бұрын
Hi,how to select and upload multiple files?
@srayazzack26414 жыл бұрын
I got multiple exeptions how to proceed please help
@sowndharyaramachandran83273 жыл бұрын
Clear explanation
@venkatvenki56523 жыл бұрын
Bro I am getting unhandled exception type AWTException
@venkatvenki56523 жыл бұрын
Error
@balamanikumar92655 жыл бұрын
Ji please put video for page load in selenium
@vickymu58124 жыл бұрын
Bro nan 18 videos order a complete paniden . Total how many videos and nan interview prepare pannanum athugu unga videos iruntha solunga...Nan manual tester 4 years....selenium webdriver madum concentrate panna pothuma....plz tell me..
@LearnAutomationOnline4 жыл бұрын
Please finish basic and advanced selenium playlist. Along with selenium interview questions, TestNG, xpath and data driven, page object model playlist. If possible watch cucumber playlist as well.
@vickymu58124 жыл бұрын
@@LearnAutomationOnline ok bro finish selenium 23 videos ..balanced table concepts.
if i am using Robot robot=new Robut(); its shown an error like "unhandled exception type AWT Exception"
@raisetesting70517 ай бұрын
Robot robot=new Robot(); not Robust
@vaishnavipandiyan24763 жыл бұрын
i am using mac , when i follow those steps in my MacBook there is some error(Exception in thread "main" org.openqa.selenium.InvalidArgumentException: invalid argument ) and choose button did not automatically click
@Rajkumar-so1um2 жыл бұрын
Hi Vaishnavi , Facing the same issue , Did you figure out on how to handle it ? If so do let me know
@dukedharma47682 жыл бұрын
Hi sir, I've a very big doubt nama AUTOMATION a selenium la panra ella visayathukum certain time aaguthu ex: oru element a clik pananum na athuku poi inspect pani id ea2thu po2 pananum ana adhe na manual a panna few seconds la mudinjurum la enaku intha doubt rmba nala irku so anybody just give a clarification. Sorry if am wrong.
@LearnAutomationOnline2 жыл бұрын
Automation takes time during the code development time, you are confusing between the development time and execution time. What we are doing is, develop automation code and it will take time.
@Dadslittleprincesskitchen3 жыл бұрын
Hi Sir, clicking on the upload file button is not working for me. I have inspected that element and taken the name attribute. I have tried with xpath also. Both are not working. What may be the issue for this Sir.?
@LearnAutomationOnline3 жыл бұрын
What exception are u facing
@Rajkumar-so1um2 жыл бұрын
@@LearnAutomationOnline Hi sir , facing the above mentioned issue . The exception is Exception in thread "main" org.openqa.selenium.WebDriverException: invalid argument WARNING: The server did not provide any stacktrace information Please clarify
@vijayraghav125 жыл бұрын
Hi guru, how to compare two images? Is there any 3party tool?
@LearnAutomationOnline5 жыл бұрын
You can make use of sikuli. I haven't used it much. But that works based on image comparison.
@deviaut30555 жыл бұрын
Hi Arul, choose file button is not getting clicked by the code. I tried to get it's attribute, it gives the name, but click operation is not happening.
@LearnAutomationOnline5 жыл бұрын
Do u get any errors
@deviaut30555 жыл бұрын
@@LearnAutomationOnline "Exception bin thread "main' org.openqa.selenium.InvalidArgumentException: Invalid argument"
@LearnAutomationOnline5 жыл бұрын
Pls post the complete exception trace. Or share your code and error to arulprasath36@gmail.com
@arvindhmk4 жыл бұрын
Its accepting file path in sendkeys, instead of clicking button
@thalapathicaptain77432 жыл бұрын
Hi Brother..Your all videos are very helpful for me.In this program, i just write below 2 lines only.Its working properly bro. i.e It does upload the files from our computers by writing this two lines.I think we dont need that much of code lines like pressKey,releaseKey Bro ... String file="file path location" driver.findElement(By.xpath("//*[@id='mydiv']/input")).sendKeys(file);
@LearnAutomationOnline2 жыл бұрын
In the video itself I would have mentioned not all applications will be accepting sendkeys. Sometimes this may not work in some applications
@thalapathicaptain77432 жыл бұрын
@@LearnAutomationOnline Ok ok ok Anna.Good Explanation.Thank you so much.!
@friendsforever67093 жыл бұрын
Thanks bro 😊😀
@elakyad13844 жыл бұрын
Exception in thread "main" org.openqa.selenium.InvalidArgumentException: invalid argument can you help to solve this error while trying upload a file program, i got this error.
@naveenkumar-in3lk4 жыл бұрын
For me also "Exception in thread "main" org.openqa.selenium.InvalidArgumentException: invalid argument" its displaying.Hi Arul sir is there any solution to resolve this error?
@vinothpriyan12603 жыл бұрын
How to get file path location in mac kojam solluga na try panna print aagala
@LearnAutomationOnline3 жыл бұрын
Sorry I never worked on Mac
@lakshmanp.v37954 жыл бұрын
Hi...File upload using robot class in selenium works fine on remote machine but fails when the remote connection is Disconnected/Minimised.. Help me on this
@LearnAutomationOnline4 жыл бұрын
Yes when the connection itself is gone there is no possibility right. When the upload action is happening the window must be active. Because we are not finding the Windows button and pasting the value of the file path, we are simply pasting it where the control is currently active.
@lakshmanp.v37954 жыл бұрын
@@LearnAutomationOnline Any alternative solution for this ??
@LearnAutomationOnline4 жыл бұрын
Tell me one thing, the scripts are running in your vm. Will u be performing any other activities during the execution? If not there is no need to minimise the window in that remote machine. Else if u have to perform operations durijng the execution, segregate the upload scenarios alone and run them without interruption. Or else use any Windows automation tools like pywin, auto it or image based tools like sikuli
@Sai-px5dn Жыл бұрын
Selenium advanced concepts : WARNING: Unable to find an exact match for CDP version 110, so returning the closest version found: 109 While running program in eclipse, I am getting this error. Please provide solution sir.
@LearnAutomationOnline Жыл бұрын
It's just a warning right? does it stop your execution? the issue is version compatibility. cehck this link stackoverflow.com/questions/75114815/unable-to-find-an-exact-match-for-cdp-version-109-so-returning-the-closest-vers
@Sai-px5dn Жыл бұрын
But my file is not uploading sir
@LearnAutomationOnline Жыл бұрын
What's the exception you are facing? The warning u have has no impact on file uploading I guess.
@MrSundayTalkies5 жыл бұрын
I have a doubt. How to use for loop to upload different files by clicking upload? If we store the many file locations in an excel file, how to retrieve those names one by one from excel?
@LearnAutomationOnline5 жыл бұрын
In that case you have to use Apache poi or jxl library to retrieve the file content from Excel. Please refer the data driven testing playlist in my channel. In that I have explained how to take values from excel.
@mithunkumarb51613 жыл бұрын
Toolkit option varalaye bro
@div1ne2983 жыл бұрын
Same problem too, if you find solution please ping here.
@parthiban285 жыл бұрын
Hi AP, I tried this program in my Windows laptop and it works fine for chrome browser. But when I tried this with FireFox browser, the 'Choose File' button itself is not getting clicked and it throws the exception as "Exception in thread "main" org.openqa.selenium.InvalidArgumentException: Cannot click elements". What could be wrong?
@LearnAutomationOnline5 жыл бұрын
The application may not be suitable for Firefox. I think it's best viewed in chrome.
@parthiban285 жыл бұрын
@@LearnAutomationOnline oh OK. Thanks.
@manikandan10635 жыл бұрын
Sir enaku inntha mathiri than error varuthu sir
@manikandan10635 жыл бұрын
Rendu browserliyum work agala sir
@naganandhini43433 жыл бұрын
driver.findElement(By.xpath("//input[@type='file']")).sendKeys("C:\\Users\\vina\\Downloads\\testleaf.xlsx"); // try this in firefox
@subbukimjoe875 жыл бұрын
Can you please share the video of uploading file in MAC?
@LearnAutomationOnline5 жыл бұрын
Hi, below code is for MAC. Since I dont have MAC, I couldnt create videos for that. Please use the code below. Try this and let me know if that works or if you face any issues. Robot robot = new Robot(); Thread.sleep(2000); //If you are NOT using Chrome then remove the below four lines. robot.keyPress(KeyEvent.VK_META); robot.keyPress(KeyEvent.VK_TAB); robot.keyRelease(KeyEvent.VK_META); robot.keyRelease(KeyEvent.VK_TAB); // The above four lines should be included for Chrome. robot.delay(2000); robot.keyPress(KeyEvent.VK_META); robot.keyPress(KeyEvent.VK_SHIFT); robot.keyPress(KeyEvent.VK_G); robot.keyRelease(KeyEvent.VK_META); robot.keyRelease(KeyEvent.VK_SHIFT); robot.keyRelease(KeyEvent.VK_G); robot.keyPress(KeyEvent.VK_META); robot.keyPress(KeyEvent.VK_V); robot.keyRelease(KeyEvent.VK_META); robot.keyRelease(KeyEvent.VK_V); robot.keyPress(KeyEvent.VK_ENTER); robot.keyRelease(KeyEvent.VK_ENTER); robot.delay(2000); robot.keyPress(KeyEvent.VK_ENTER); robot.keyRelease(KeyEvent.VK_ENTER);
@subbukimjoe875 жыл бұрын
@@LearnAutomationOnline Thank you for reply. Yes I have already tried this before and again when I tried the above code today, I got the same error both times as : pid(83036)/euid(501) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!!
@LearnAutomationOnline5 жыл бұрын
Give me sometime, will find a MAC and will try to create a video for that. Until then you can work on other videos.
@subbukimjoe875 жыл бұрын
@@LearnAutomationOnline Sure!
@celinemary33714 жыл бұрын
I got same error " "InvalidArgumentException: Invalid argument" error"..what should iI do???? I am using chrome in window.." Exception in thread "main" org.openqa.selenium.InvalidArgumentException: invalid argument (Session info: chrome=81.0.4044.129)
@LearnAutomationOnline4 жыл бұрын
Please refer to the pinned comment. The very first comment
@vd121233 жыл бұрын
SendKeys ("path") uploads file
@arunragavan4424 жыл бұрын
bro uploadbutton click agala..... invalid argument nu varuthu
@LearnAutomationOnline4 жыл бұрын
The selector that I used in the video may have been changed. Please identify the button by some other ways
@arunragavan4424 жыл бұрын
@@LearnAutomationOnline bro na xpath use pannan
@nocomments98504 жыл бұрын
Same problem to me
@arunragavan4424 жыл бұрын
@@nocomments9850 wt to do that bro???
@nocomments98504 жыл бұрын
@@arunragavan442 not yet sloved bro
@venkat14884 жыл бұрын
Hi, while try to run the script it is showing invalid argument error.
@LearnAutomationOnline4 жыл бұрын
Please be more specific. Its difficult for me to analyse with only the anek of the error. Provide Information on, whether it's happening on run time or during the compilation itself, you are getting red underline on which line you are getting this error
@venkat14884 жыл бұрын
@@LearnAutomationOnline Error is occurring on run time
@LearnAutomationOnline4 жыл бұрын
Bro, please copy and paste the stack trace. I mean the enitre error that you are getting on console
Is this the complete stack trace? I think it's partial. Anyways here's my guess. This exception means you have given any invalid argument to one of the methods. For example, in get method you could have given the url in a wrong manner. Please check that. And as I said before, if you are getting errors, there will be clear mention on which line that errors occured and die to what. Only if I know, I can exactly point out what is the issue. Else I can only guess
@manikandan10635 жыл бұрын
Sir unga contact number kodunga
@LearnAutomationOnline5 жыл бұрын
Sorry Mani, KZbin comments is the best place to reach me. Incase of my personal questions, ping me in Instagram
@srayazzack26414 жыл бұрын
@@LearnAutomationOnline please help me in this ingot multiple exeptions please help me in this
@yaswanth33362 жыл бұрын
Hi Arul prasath, firstly I thank you for all ur videos 🙏. My doubt in this video is "toolkit" is not coming when I type Tool and click cntrl+space . Am getting lot of options but not ToolKit ! So please give solution for this 🙏 #learnAutomationOnline @ArulPrasath
@elakyad13843 жыл бұрын
Hi Sir, I can't use the StringSelection and Toolkit classes . In my libraries are classes are available, But I don't know how to use those classes in my project. In the quick fixes window shows that "StringSelection cannot be resolved to a type". Please help me out. Waiting for your reply !