Selenium Tutorial Series | Part 18 | Uploading a file| Tamil

  Рет қаралды 39,848

Learn Automation Online

Learn Automation Online

Күн бұрын

Пікірлер
@SanthoshKumar-yk1md
@SanthoshKumar-yk1md 2 жыл бұрын
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_rish9
@kish_rish9 2 жыл бұрын
Thanks a lot for sharing this bro !
@deepikag1866
@deepikag1866 Ай бұрын
thankyou sir for your effort u are such a great teacher
@abarnajayachandran1298
@abarnajayachandran1298 3 жыл бұрын
Hi Sir, java.awt epdi use pandrathu yethavathu configuration pananuma ..
@sujithkrishna05
@sujithkrishna05 3 жыл бұрын
Bettr we can use senkey to upload rght sir...single line we can upload
@cpraneesh1298
@cpraneesh1298 2 жыл бұрын
Hi sir, windows popup open aguthu but file location paste aga matingthu sir please reply sir help me
@NikuExplores
@NikuExplores 2 жыл бұрын
அண்ணா can you tell selenium 4.6.0 vr dependency .
@ramyaramanujam4521
@ramyaramanujam4521 3 жыл бұрын
@ 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.
@hariprasath3219
@hariprasath3219 3 жыл бұрын
thank you sir it's a valuable video....................
@srinivasank1503
@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 ?
@celinemary3371
@celinemary3371 4 жыл бұрын
Thank you sir...Success
@Niceboy7245
@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
@Tom-dj9ly Ай бұрын
Hi Arul bro, i feel this is complicated. other are using sendeys to upload thier files.
@sastikaselvam
@sastikaselvam 4 жыл бұрын
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
@cpraneesh1298 Жыл бұрын
Hi sir Window popup open aguthu but paste aga matingthu solution kudunga bro
@packiavathymanickavelu3669
@packiavathymanickavelu3669 2 жыл бұрын
First time I am watching your video sir.. it is very useful and informative. Thank you
@CSPRAKALYANP
@CSPRAKALYANP 9 ай бұрын
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.
@hashirhasmy1042
@hashirhasmy1042 2 жыл бұрын
.sendkeys("path of the file") kuduthalaum work pannuthu anna. is it new feature in selanium to upload a file using selanium
@gayumaniya4321
@gayumaniya4321 3 жыл бұрын
Hi I have one doubt.here selecting multiple key so shall I use keyschord
@karthickbaskaran5743
@karthickbaskaran5743 3 жыл бұрын
Hi bro, the browser is getting opened ... and click operation is not performed .
@manoanand147
@manoanand147 2 жыл бұрын
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....
@LifeLessionsAcademy
@LifeLessionsAcademy 3 жыл бұрын
Stringselection can not be resolved to a type... Pls reply pannunga, how to solve this problem.. Toolkit, robot is not not working
@abarnajayachandran1298
@abarnajayachandran1298 3 жыл бұрын
Robot class um epdi configure pananum solungaa sir
@divyavarman5858
@divyavarman5858 5 жыл бұрын
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-qu4ke
@MrWeird-qu4ke 3 жыл бұрын
Hi bro Awt package epdi bro import panna ??
@ParthiPlays
@ParthiPlays 3 жыл бұрын
cntrl +space press panna StringSelection,Toolkit nu entha proposals um varala bro
@rinuraj2566
@rinuraj2566 4 жыл бұрын
Hi, I've tried several times this same program shows Invalid ArgumentException.? Could you Please Help!
@elakyad1384
@elakyad1384 2 жыл бұрын
Hi Sir, I can't use the StringSelection and Toolkit classes . Can anyone please help me with this please.
@mariasurekha7992
@mariasurekha7992 4 жыл бұрын
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
@LearnAutomationOnline
@LearnAutomationOnline 4 жыл бұрын
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
@ilavarasansriraman4140
@ilavarasansriraman4140 4 жыл бұрын
Ex Panimalar students ellam "Learn Automation Online" channel thaan follow pandranga pola 😊..
@VenkatBalakrishaan
@VenkatBalakrishaan 3 жыл бұрын
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 !
@petchimuthu3308
@petchimuthu3308 3 жыл бұрын
Hi sir , how upload multiple files at a time..please tell me
@vaishnavipandiyan2476
@vaishnavipandiyan2476 3 жыл бұрын
is it common for mac_os
@sundharyuvi8221
@sundharyuvi8221 4 жыл бұрын
Hi bro, How to can I upload multiple files. Please advice...
@hashirhasmy1042
@hashirhasmy1042 2 жыл бұрын
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
@hashirhasmy1042
@hashirhasmy1042 2 жыл бұрын
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-xx3vy
@Vijayakumar-xx3vy 4 жыл бұрын
Hi,how to select and upload multiple files?
@srayazzack2641
@srayazzack2641 4 жыл бұрын
I got multiple exeptions how to proceed please help
@sowndharyaramachandran8327
@sowndharyaramachandran8327 3 жыл бұрын
Clear explanation
@venkatvenki5652
@venkatvenki5652 3 жыл бұрын
Bro I am getting unhandled exception type AWTException
@venkatvenki5652
@venkatvenki5652 3 жыл бұрын
Error
@balamanikumar9265
@balamanikumar9265 5 жыл бұрын
Ji please put video for page load in selenium
@vickymu5812
@vickymu5812 4 жыл бұрын
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..
@LearnAutomationOnline
@LearnAutomationOnline 4 жыл бұрын
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.
@vickymu5812
@vickymu5812 4 жыл бұрын
@@LearnAutomationOnline ok bro finish selenium 23 videos ..balanced table concepts.
@poorninarayanan4173
@poorninarayanan4173 3 жыл бұрын
how to remane a file usinmg automation?
@musicheals24
@musicheals24 2 жыл бұрын
import java.awt.Toolkit; import java.awt.AWTException; import java.awt.Robot; import java.awt.event.KeyEvent; import java.awt.datatransfer.StringSelection;
@Anu-j6c
@Anu-j6c 10 ай бұрын
if i am using Robot robot=new Robut(); its shown an error like "unhandled exception type AWT Exception"
@raisetesting7051
@raisetesting7051 7 ай бұрын
Robot robot=new Robot(); not Robust
@vaishnavipandiyan2476
@vaishnavipandiyan2476 3 жыл бұрын
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-so1um
@Rajkumar-so1um 2 жыл бұрын
Hi Vaishnavi , Facing the same issue , Did you figure out on how to handle it ? If so do let me know
@dukedharma4768
@dukedharma4768 2 жыл бұрын
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.
@LearnAutomationOnline
@LearnAutomationOnline 2 жыл бұрын
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.
@Dadslittleprincesskitchen
@Dadslittleprincesskitchen 3 жыл бұрын
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.?
@LearnAutomationOnline
@LearnAutomationOnline 3 жыл бұрын
What exception are u facing
@Rajkumar-so1um
@Rajkumar-so1um 2 жыл бұрын
@@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
@vijayraghav12
@vijayraghav12 5 жыл бұрын
Hi guru, how to compare two images? Is there any 3party tool?
@LearnAutomationOnline
@LearnAutomationOnline 5 жыл бұрын
You can make use of sikuli. I haven't used it much. But that works based on image comparison.
@deviaut3055
@deviaut3055 5 жыл бұрын
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.
@LearnAutomationOnline
@LearnAutomationOnline 5 жыл бұрын
Do u get any errors
@deviaut3055
@deviaut3055 5 жыл бұрын
@@LearnAutomationOnline "Exception bin thread "main' org.openqa.selenium.InvalidArgumentException: Invalid argument"
@LearnAutomationOnline
@LearnAutomationOnline 5 жыл бұрын
Pls post the complete exception trace. Or share your code and error to arulprasath36@gmail.com
@arvindhmk
@arvindhmk 4 жыл бұрын
Its accepting file path in sendkeys, instead of clicking button
@thalapathicaptain7743
@thalapathicaptain7743 2 жыл бұрын
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);
@LearnAutomationOnline
@LearnAutomationOnline 2 жыл бұрын
In the video itself I would have mentioned not all applications will be accepting sendkeys. Sometimes this may not work in some applications
@thalapathicaptain7743
@thalapathicaptain7743 2 жыл бұрын
@@LearnAutomationOnline Ok ok ok Anna.Good Explanation.Thank you so much.!
@friendsforever6709
@friendsforever6709 3 жыл бұрын
Thanks bro 😊😀
@elakyad1384
@elakyad1384 4 жыл бұрын
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-in3lk
@naveenkumar-in3lk 4 жыл бұрын
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?
@vinothpriyan1260
@vinothpriyan1260 3 жыл бұрын
How to get file path location in mac kojam solluga na try panna print aagala
@LearnAutomationOnline
@LearnAutomationOnline 3 жыл бұрын
Sorry I never worked on Mac
@lakshmanp.v3795
@lakshmanp.v3795 4 жыл бұрын
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
@LearnAutomationOnline
@LearnAutomationOnline 4 жыл бұрын
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.v3795
@lakshmanp.v3795 4 жыл бұрын
@@LearnAutomationOnline Any alternative solution for this ??
@LearnAutomationOnline
@LearnAutomationOnline 4 жыл бұрын
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
@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
@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
@Sai-px5dn Жыл бұрын
But my file is not uploading sir
@LearnAutomationOnline
@LearnAutomationOnline Жыл бұрын
What's the exception you are facing? The warning u have has no impact on file uploading I guess.
@MrSundayTalkies
@MrSundayTalkies 5 жыл бұрын
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?
@LearnAutomationOnline
@LearnAutomationOnline 5 жыл бұрын
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.
@mithunkumarb5161
@mithunkumarb5161 3 жыл бұрын
Toolkit option varalaye bro
@div1ne298
@div1ne298 3 жыл бұрын
Same problem too, if you find solution please ping here.
@parthiban28
@parthiban28 5 жыл бұрын
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?
@LearnAutomationOnline
@LearnAutomationOnline 5 жыл бұрын
The application may not be suitable for Firefox. I think it's best viewed in chrome.
@parthiban28
@parthiban28 5 жыл бұрын
@@LearnAutomationOnline oh OK. Thanks.
@manikandan1063
@manikandan1063 5 жыл бұрын
Sir enaku inntha mathiri than error varuthu sir
@manikandan1063
@manikandan1063 5 жыл бұрын
Rendu browserliyum work agala sir
@naganandhini4343
@naganandhini4343 3 жыл бұрын
driver.findElement(By.xpath("//input[@type='file']")).sendKeys("C:\\Users\\vina\\Downloads\\testleaf.xlsx"); // try this in firefox
@subbukimjoe87
@subbukimjoe87 5 жыл бұрын
Can you please share the video of uploading file in MAC?
@LearnAutomationOnline
@LearnAutomationOnline 5 жыл бұрын
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);
@subbukimjoe87
@subbukimjoe87 5 жыл бұрын
​@@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!!!
@LearnAutomationOnline
@LearnAutomationOnline 5 жыл бұрын
Give me sometime, will find a MAC and will try to create a video for that. Until then you can work on other videos.
@subbukimjoe87
@subbukimjoe87 5 жыл бұрын
@@LearnAutomationOnline Sure!
@celinemary3371
@celinemary3371 4 жыл бұрын
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)
@LearnAutomationOnline
@LearnAutomationOnline 4 жыл бұрын
Please refer to the pinned comment. The very first comment
@vd12123
@vd12123 3 жыл бұрын
SendKeys ("path") uploads file
@arunragavan442
@arunragavan442 4 жыл бұрын
bro uploadbutton click agala..... invalid argument nu varuthu
@LearnAutomationOnline
@LearnAutomationOnline 4 жыл бұрын
The selector that I used in the video may have been changed. Please identify the button by some other ways
@arunragavan442
@arunragavan442 4 жыл бұрын
@@LearnAutomationOnline bro na xpath use pannan
@nocomments9850
@nocomments9850 4 жыл бұрын
Same problem to me
@arunragavan442
@arunragavan442 4 жыл бұрын
@@nocomments9850 wt to do that bro???
@nocomments9850
@nocomments9850 4 жыл бұрын
@@arunragavan442 not yet sloved bro
@venkat1488
@venkat1488 4 жыл бұрын
Hi, while try to run the script it is showing invalid argument error.
@LearnAutomationOnline
@LearnAutomationOnline 4 жыл бұрын
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
@venkat1488
@venkat1488 4 жыл бұрын
@@LearnAutomationOnline Error is occurring on run time
@LearnAutomationOnline
@LearnAutomationOnline 4 жыл бұрын
Bro, please copy and paste the stack trace. I mean the enitre error that you are getting on console
@venkat1488
@venkat1488 4 жыл бұрын
@@LearnAutomationOnline Hi , i am attaching the error which i got. Exception in thread "main" org.openqa.selenium.InvalidArgumentException: invalid argument (Session info: chrome=81.0.4044.92) Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53' System info: host: 'CHNW3005420', ip: '10.192.130.116', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_77' Driver info: org.openqa.selenium.chrome.ChromeDriver Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 81.0.4044.92, chrome: {chromedriverVersion: 80.0.3987.16 (320f6526c1632..., userDataDir: C:\Users\CVENKA~1\AppData\L...}, goog:chromeOptions: {debuggerAddress: localhost:58864}, javascriptEnabled: true, networkConnectionEnabled: false, pageLoadStrategy: normal, platform: WINDOWS, platformName: WINDOWS, proxy: Proxy(), setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify} Session ID: 6def5acf552775dfaa97cc3b3274df3e
@LearnAutomationOnline
@LearnAutomationOnline 4 жыл бұрын
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
@manikandan1063
@manikandan1063 5 жыл бұрын
Sir unga contact number kodunga
@LearnAutomationOnline
@LearnAutomationOnline 5 жыл бұрын
Sorry Mani, KZbin comments is the best place to reach me. Incase of my personal questions, ping me in Instagram
@srayazzack2641
@srayazzack2641 4 жыл бұрын
@@LearnAutomationOnline please help me in this ingot multiple exeptions please help me in this
@yaswanth3336
@yaswanth3336 2 жыл бұрын
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
@elakyad1384
@elakyad1384 3 жыл бұрын
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 !
Selenium Tutorial Series | Part 19 | Working with Images | Tamil
9:41
Learn Automation Online
Рет қаралды 26 М.
How To Choose Mac N Cheese Date Night.. 🧀
00:58
Jojo Sim
Рет қаралды 102 МЛН
Муж внезапно вернулся домой @Oscar_elteacher
00:43
История одного вокалиста
Рет қаралды 7 МЛН
Selenium Tutorial series | Advanced Concepts | PART  11 - Windows Handling |Tamil
28:18
Selenium Interview Questions | PART-6 | Different ways to take screenshot | Tamil
19:32
Selenium Tutorial Series | Part 20 | Working with Links - Advanced concepts | Tamil
21:50
Selenium Tutorial Series | Part 21 | Working with Dynamic Tables | Tamil
44:38
Learn Automation Online
Рет қаралды 50 М.
Seleniu Tutorial series | Advanced Concepts | PART 12 - Handling IFrames |Tamil
16:50
Selenium Tutorial Series | Part 22 | Working with Calendars | Tamil
14:26
Learn Automation Online
Рет қаралды 29 М.
How To Choose Mac N Cheese Date Night.. 🧀
00:58
Jojo Sim
Рет қаралды 102 МЛН