How to Upload file in Selenium webdriver using AutoIT

  Рет қаралды 141,997

Mukesh otwani

Mukesh otwani

Күн бұрын

Пікірлер: 353
@umairidrees7291
@umairidrees7291 6 жыл бұрын
You honestly do reserve respect. This was extremely helpful for my work. You break everything down very well and are able to make difficult things seem very easy. Thank you very very much!
@vusikelasatheesh4074
@vusikelasatheesh4074 6 жыл бұрын
Hai sir, I am learning to AutoIT to face so many prblem sir, but in this I am watching your video so i clear to understand how to upload file sir, really thank you very much sir.
@sriharibabunidamanuri3203
@sriharibabunidamanuri3203 7 жыл бұрын
Very helpful video and i want to provide one tip to copy total path of any file. i.e., hold Ctrl+Shift and then right click on the file then select "Copy as path". With this we will get complete path of the file with extension of the file.
@ashishraval007
@ashishraval007 9 жыл бұрын
Hi Mukesh. thanks for putting this. I learnt 2 things! 1 is selenium and autoit and 2nd is how should presentation should be! :) simple, clear and perfect speed for new people..
@Mukeshotwani
@Mukeshotwani 9 жыл бұрын
+Ashish Raval Thank You Ashish :) Please visit other video's too and let me know if any help required. Check Mobile Test Automation as well. kzbin.info/www/bejne/nXSUenejgZuXb9k
@picardfolefack374
@picardfolefack374 8 жыл бұрын
Just wanted to mention that AutoIT is pronounced "auto-eat" not "auto-eye-tea" on video 37. The "IT" part of "AutoIT" refers the application being tested. Great tuto, Thank you for sharing
@Mukeshotwani
@Mukeshotwani 8 жыл бұрын
Thanks for the Feedback Picard :) Noted your comment and will improve.
@kevinruder9652
@kevinruder9652 5 жыл бұрын
For anyone having troubles getting this to work on chrome. I used the following script : WinWaitActive("#32770","Open",2) WinFlash("Open"," ", 4, 500); ControlSetText("Open"," ","Edit1","C:\Images\UploadImage.png"); WinWaitActive("#32770","Open",2) ControlClick("Open"," ","Button1")
@Mukeshotwani
@Mukeshotwani 5 жыл бұрын
Hey Kevin, You just need 3 lines of code in AutoIT. Please refer below post learn-automation.com/upload-file-in-selenium-webdriver-using-autoit/
@maheshkaradi6077
@maheshkaradi6077 6 жыл бұрын
Mukesh, you are awesome man... beleive it or not, i have moved to automation just by referring your videos... you deserve a respect.. humble request, don't stop to upload videos...
@Mukeshotwani
@Mukeshotwani 6 жыл бұрын
Thank you so much Mahesh Bhai 😊😊 Good luck and let me know if any help required. Wishing you happy Holi
@maheshkaradi6077
@maheshkaradi6077 6 жыл бұрын
Mukesh otwani HI mukesh,.. I am working with uploading csv file... if i change anything, do we need to compile autoit script everytime?
@Mukeshotwani
@Mukeshotwani 6 жыл бұрын
Yes compile and then use the new exe
@maheshkaradi6077
@maheshkaradi6077 6 жыл бұрын
if there are 10 csv file to upload, we need create 10 Autoit exe file? or do we have any other option?
@silag1312
@silag1312 6 жыл бұрын
Mukesh the way of explaining each topic simply super..Thank you so much, very helpful videos
@Mukeshotwani
@Mukeshotwani 6 жыл бұрын
Thank you so much Sila :)
@shitalkd4766
@shitalkd4766 2 жыл бұрын
Easily understood 👌👌 Nice explanation 👏👏
@Mukeshotwani
@Mukeshotwani 2 жыл бұрын
Thanks for liking Shital I am glad it helped.
@seenukaniappan8882
@seenukaniappan8882 7 жыл бұрын
Way you're explaining the concepts is great! Thanks Mukesh.
@dvamsireddy6958
@dvamsireddy6958 2 жыл бұрын
Your teaching skills are great bro thanks a lot bro
@Mukeshotwani
@Mukeshotwani 2 жыл бұрын
Hi Vamsi, thank you so much..
@salmaanrazzakofficial
@salmaanrazzakofficial 5 жыл бұрын
Excellent resource - your suggested solutions are always reliable! Keep up the great work Mukesh!
@Mukeshotwani
@Mukeshotwani 5 жыл бұрын
Thanks Salmaan 😃
@vamsi476giet
@vamsi476giet 8 жыл бұрын
One of the important questions which we face in interview.. Thanks again
@Mukeshotwani
@Mukeshotwani 8 жыл бұрын
+vamsi krishna yeah true
@monda0
@monda0 9 жыл бұрын
Thank u Mukesh..ur explanation is very clear and very understandable..good job..
@Mukeshotwani
@Mukeshotwani 9 жыл бұрын
+monda0 Thanks Keep visiting :)
@buzyfuzzymom
@buzyfuzzymom 3 жыл бұрын
So nice explanation in very simple way ❤️
@Mukeshotwani
@Mukeshotwani 3 жыл бұрын
Thanks a lot 😊 Isvima
@buildleadinnovate24
@buildleadinnovate24 7 жыл бұрын
thanks for so much effort to explain each topic so easily...you deserve respect
@Mukeshotwani
@Mukeshotwani 7 жыл бұрын
Thanks Sharma ji :) Keep visiting and keep learning.
@ClassicRebornRider
@ClassicRebornRider 7 жыл бұрын
Hey Mukesh the html file you created is only working with Firefox not with Chrome? any solutions
@Mukeshotwani
@Mukeshotwani 7 жыл бұрын
+Anand Singh Hi Anand if you check my video once again you will notice I have explained that for chrome and IE WE HAVE to write another script because title of window will change. Just write new autoit script with changes and try. If you face any issue then let me know
@mohitgupta5566
@mohitgupta5566 7 жыл бұрын
Hi Mukesh, i am facing same problem.File Not getting uploaded. Tried to change filename.
@umairidrees7291
@umairidrees7291 6 жыл бұрын
This seems to be working with chrome now aswell. No extra script is required.
@ShivaniSingh-pk2wl
@ShivaniSingh-pk2wl 9 жыл бұрын
Perfect!! thanks a lot.. Indians always rock..simple and useful explanation
@Mukeshotwani
@Mukeshotwani 9 жыл бұрын
Shivani Singh Thanks a ton Shivani...for such a nice comment keep Watching.
@unnikrishnangangadharakuru6410
@unnikrishnangangadharakuru6410 9 жыл бұрын
Thanks Mukesh...very simple and informative..expecting more videos from you.
@Mukeshotwani
@Mukeshotwani 9 жыл бұрын
***** Thanks :) Yes will be uploading more videos soon. Stay tunned
@RaviKumar-hz8cf
@RaviKumar-hz8cf 3 жыл бұрын
Thank you so much Mukesh for such Useful content
@Mukeshotwani
@Mukeshotwani 3 жыл бұрын
Thank you Ravi
@medhakumari6958
@medhakumari6958 7 жыл бұрын
hi sir this is anurag kumar.nice video with excellent explanations.
@vasantalkieschannel
@vasantalkieschannel 7 жыл бұрын
Simply awesome sir!!!! Just the sheer clarity that you provide is unmatchable!!!! God bless and keep sharing your knowledge :)
@Mukeshotwani
@Mukeshotwani 7 жыл бұрын
Thank you so much Krirhivasan for blessing 🙏 keep learning
@rks2121
@rks2121 9 жыл бұрын
thanks mukesh....very helpful class...thanks for loading the video....:) all the best
@Mukeshotwani
@Mukeshotwani 9 жыл бұрын
Rama krishna Reddy Thanks Rama :)
@lalithasoundarya3324
@lalithasoundarya3324 9 жыл бұрын
Nice attempt and good explanation to simplify the uploads...Thanks
@Mukeshotwani
@Mukeshotwani 9 жыл бұрын
Lalitha Soundarya Thanks Lalitha
@denathor3886
@denathor3886 3 жыл бұрын
Thank you friend! It works flawlessly!
@Mukeshotwani
@Mukeshotwani 3 жыл бұрын
You're welcome! Thanks Denathor
@sammy22391
@sammy22391 6 жыл бұрын
Thank you so so much ... you have been a saviour i spent two days in this could not find the solution thanks a ton.... god bless u
@Mukeshotwani
@Mukeshotwani 6 жыл бұрын
Your most welcome Bhai.. Keep in touch and let me know if any help from my side.
@sammy22391
@sammy22391 6 жыл бұрын
Sorry I m girl not a guy ... sure
@Mukeshotwani
@Mukeshotwani 6 жыл бұрын
Sorry Sammy my bad 😢
@deependrarajawat5175
@deependrarajawat5175 7 жыл бұрын
Hi Mukesh.... your videos are very much useful and the way you explain it that's even better, very easy to learn complex things also ...Please let me know if you have or can arrange some online tutorials on selenium.
@mannuhunasigi
@mannuhunasigi 9 жыл бұрын
Nice Explanation step by step..Good work mukesh :) Cheers!
@Mukeshotwani
@Mukeshotwani 8 жыл бұрын
+Manoj Hunasigi Thanks Manoj
@asmarazaq9122
@asmarazaq9122 4 жыл бұрын
Thank You Mukesh for the information. I need go upload a file at Mac system using Safaridriver. Is the upload possible through automation? If so, what should be my approach in this regard? Plz guide me
@Mukeshotwani
@Mukeshotwani 4 жыл бұрын
Hi Asma this would help learn-automation.com/upload-file-in-selenium-in-mac/
@asmarazaq9122
@asmarazaq9122 4 жыл бұрын
@@Mukeshotwani Thank You sir , You have always helped us alot
@prasadpasupuleti9720
@prasadpasupuleti9720 6 жыл бұрын
Hi Mukesh, Thank you So much for your detailed explanation! I am able to run the script on Firefox successfully. But, In order to run the script on both chrome and Firefox , what are the modifications needed for existing autoit script? Thanks in Advance!
@vasantalkieschannel
@vasantalkieschannel 6 жыл бұрын
Hi Mukesh : Can you help me out in below issue? After creating the file with .au3 extension and when we right click on that file it is not showing any options like Compile script(x64), compile script(x86) how can i compile the file with .au3 extension.
@rajeev9987
@rajeev9987 6 жыл бұрын
Hi Mukesh, How to upload files when we are using headless mode , using HtmlUnitDriver or PhantomJS
@Jaffa1
@Jaffa1 6 жыл бұрын
Hi Mukesh, Same scenario we can do by using SendKeys ... Driver.findElement(By.xpath()).sendKeys(filepath).
@Mukeshotwani
@Mukeshotwani 6 жыл бұрын
True Uma you can use sendkeys as well but that will work only for default uploader. Whenever you have the custom file uploader then you have to use AutoIT.
@ktk6321
@ktk6321 7 жыл бұрын
Thanks Mukesh for this wonderful tutorial. I found two issues while implementing this 1. This is working working fine in Firefox but not in Chrome. 2. Test result is shown as passed even if the file is not uploaded. Is it possible to assert if the file is uploaded or not?
@Mukeshotwani
@Mukeshotwani 7 жыл бұрын
Hi Teja, Please find my comments below 1- For Every browser title will change so you need to write script for each browser 2- For validation, you need to write Selenium code which will verify file uploaded or not.
@habiburrahman8316
@habiburrahman8316 4 жыл бұрын
I have same problem my test script pass but file not upload.please let me know mukesh.
@rajasekharreddy1231
@rajasekharreddy1231 7 жыл бұрын
hi Mukesh, again a big thanx for providing these videos I'm facing a problem that my script is failing once in 3 times....taking invalid path while uploading (not fetching the provided path exactly) Im not able to figure out the issue.....please help me with this r suggest any alternative
@sallyzhang8394
@sallyzhang8394 6 жыл бұрын
try to add "Thread.sleep(5000);" , I added, then it works.
@ambikasingh9477
@ambikasingh9477 7 жыл бұрын
Thanks alot Mukesh.so nicely have explained..
@Mukeshotwani
@Mukeshotwani 7 жыл бұрын
+Ambika Singh welcome Ambika I m glad you find it useful.
@namangupta8582
@namangupta8582 8 жыл бұрын
Hi Mukesh, I am using Autoit for upload file and your reference video has helped me a lot. Thanks for this. But I am facing an issue i,e.. while running a my script in IE11 AutoIT is not supporting there as it is showing IE does not supports au3 extensions. Please help me out in solving this.
@gaurkishor97
@gaurkishor97 8 жыл бұрын
Hi Mukesh, Thanks for uploading such helpful video. It would be great help if you can highlight some video on drag and drop functionality similar to this. I mean, here instead of browse, suppose there is an area on browser where I want to drag and drop a file. The location of the file that needs to be dragged is provided by the user.
@divyanaik4628
@divyanaik4628 9 жыл бұрын
Hi Mukesh, Thanks for this Video. Can you tell me if we can use Auto IT to enter values in PDF? If not do we have any other tool that can do the same?
@Mukeshotwani
@Mukeshotwani 9 жыл бұрын
+Divya Naik Hi Divay, I have not tried with PDF but yes you can try below tutorial it may help you www.autoitscript.com/autoit3/docs/tutorials/notepad/notepad.htm
@mahanteshpavadi5471
@mahanteshpavadi5471 5 жыл бұрын
Hi Mukesh...Thank you very much for nicely explaining each concept. I have one query on file upload...When i perform file upload script through selenium getting the 'file unable to open the script file' error. Could you please suggest me why i am getting this error.
@jacquesgrillet8510
@jacquesgrillet8510 6 жыл бұрын
Hello Mukesh Thank for the explanation. Did you make a video to use autoIT to manage ChromeDriver instead of java ? Thanks
@ashokdega1573
@ashokdega1573 7 жыл бұрын
Hi Mukesh otwani your videos are very helpful
@Mukeshotwani
@Mukeshotwani 7 жыл бұрын
Most welcome Ashok
@SunilYadav-im8ho
@SunilYadav-im8ho 8 жыл бұрын
Thanks Mukesh, Very nice explanation..
@Mukeshotwani
@Mukeshotwani 8 жыл бұрын
+Sunil Yadav Thanks Sunil
@lakshmicharitha9705
@lakshmicharitha9705 4 жыл бұрын
Hi Mukesh, Thanks for video, it was nice explanation. But, can you help me as i am unable to execute SciTE script after complied ....
@Mukeshotwani
@Mukeshotwani 4 жыл бұрын
Hi Lakshmi, Can you tell me what issue you are getting? Once you get exe file, try running using double click, if it is running fine then you can trigger the same using Java Code.
@pratikkumary2joo7
@pratikkumary2joo7 7 жыл бұрын
Very good explanation. Is there any way we can pass the file path as a parameter to AutoIT script from Java
@grvermeulen
@grvermeulen 9 жыл бұрын
Hi Mukesh, I've been following your video's, they have been a great help for my work! Do you think it is possible to upload a file like you did in this video, but then with the file directory as a variable, reading the source of the variable from the same excel file you have the rest of your data in? (like you showed with the data driven framework in you other video's). thanks in advance!
@Mukeshotwani
@Mukeshotwani 9 жыл бұрын
+grvermeulen Hi Thanksand Keep visiting :) Yes it is possible you need to parameterize this script so based on parameter it will accept the file. Please try below link . Hope it will help you. www.msfn.org/board/topic/72155-howto-pass-a-parameter-to-autoit/
@hutchkishore
@hutchkishore 7 жыл бұрын
Hi Mukesh, can we run the exe created using Leanft with Java as we are having some trouble with LeanFT on certain areas of my client-server application? Thanks Kishore
@Mukeshotwani
@Mukeshotwani 7 жыл бұрын
Hi Kishor not sure on this.
@maheshappala3150
@maheshappala3150 6 жыл бұрын
Hi mukesh same thing i have done what you have done in this video.After open browsing file is not selected.in eclipse it's showing like this Starting ChromeDriver 2.39.562718 (9a2698cba08cf5a471a29d30c8b3e12becabb0e9) on port 4906 Only local connections are allowed. Jun 10, 2018 10:11:23 PM org.openqa.selenium.remote.ProtocolHandshake createSession INFO: Detected dialect: OSS.After terminating the program can you please help me on that
@PradeepKumar-tn6cf
@PradeepKumar-tn6cf 2 жыл бұрын
Hi @Mukesh in AutoIt script how i will give generic path of my file to be uploaded so that script will not fail if it run in another env also
@151181harpal
@151181harpal 8 жыл бұрын
Hi Mukesh, Thanks a lot for the videos and explaining it so well. I have watched lot of your videos and it has helped me in learning. I am stuck in the Drag and drop case, if there is only drag and drop Option in a webpage but no Upload via Browse button then how would we proceed. How would we open the window explorer? Can you please help
@Mukeshotwani
@Mukeshotwani 8 жыл бұрын
In this case you can use Actions class for drag and drop.
@151181harpal
@151181harpal 8 жыл бұрын
Hi Mukesh, i thought Actions class will only work on the WebElement. In my case i have to drag and drop a file that is on my local c:/ drive, and i i have to drop the file to the browser app and it does not have the browse button also. Therefore i am stuck. Can you please help.
@ankukulhade786
@ankukulhade786 5 жыл бұрын
Hi Mukesh, I tried to upload the file by using your method but not able to upload the file. I check the code multiple time but everything is same as you mentioned on the video. Please suggest. I am using windows 10 .
@sleniumforbeginners9646
@sleniumforbeginners9646 9 жыл бұрын
Hi Mukesh , I tried with exact same code you demonstrated in the video . What i am seeing is its working fine with Chrome but not with Firefox and IE . its not able to upload the file and doesnt click on "open button either "
@Mukeshotwani
@Mukeshotwani 9 жыл бұрын
+Slenium for beginners It is working for me in all browser.. For other browser title will change so make the changes accordingly.
@leadars
@leadars 9 жыл бұрын
@mukesh: nice work and good pace of explaining. :-)
@Mukeshotwani
@Mukeshotwani 9 жыл бұрын
+Arsalan Mohammad Thanks Arsalan :) Keep visiting
@QaVarsha
@QaVarsha 7 жыл бұрын
Hi Mukesh, i'm unable to click on browser button for choose file, using xpath or css.
@RohitSharma-yl9lw
@RohitSharma-yl9lw 5 жыл бұрын
very clear explanation....thanks alot..
@Mukeshotwani
@Mukeshotwani 5 жыл бұрын
Welcome Sharma ji
@shreyanshjain2347
@shreyanshjain2347 9 жыл бұрын
Thank you so much :D, your videos are really good, i m watching all your videos, u have explained the concepts in very simple language,keep posting the videos. :D Please post important questions for the interview for 1 year experience. :)
@Mukeshotwani
@Mukeshotwani 9 жыл бұрын
+Shreyansh jain Thanks Shreyansh :) yes will upload soon
@TheMssivasankar
@TheMssivasankar 8 жыл бұрын
Hi Mukesh, Thanks a lot for your videos .I have one question on Auto IT. Can we automate windows object like MS word (like open,enter content and save) in selenium.I tried with Autoit - finder tool to get the title for the File option in the Microsoft word,but finder tool does not locate the specific option .could you share your views.
@Mukeshotwani
@Mukeshotwani 8 жыл бұрын
Sorry not sure on this.
@sarikaraheja2203
@sarikaraheja2203 8 жыл бұрын
Hi Mukesh,, This is really a helpful tutorial,,,, I am facing a problem when executing this autoit script,,,, and it happens only sometimes,,,,,, Scenarios in my app is: Click on browse button , File Upload window appears which i am handling thru autoit script told by you. After that in my app i need to click on "Import" button to start uploading the file. But sometimes this Import button is clicked even before the autoit script is executed. how can i tell webdriver to wait until the windows pop up adds the file so as to click on Import button
@Mukeshotwani
@Mukeshotwani 8 жыл бұрын
Hi Sarika, add below line in AutoIT script WinWaitActive("File Upload") -- You can change the title based on requirement. Please let me know if still does not work.
@sarikaraheja2203
@sarikaraheja2203 8 жыл бұрын
Hi Mukesh,,,,I really thank you for your time to reply...It is still not working with the folowing autoIT code: WinWaitActive("File Upload") ControlFocus("File Upload","","Edit1") ControlSetText("File Upload","","Edit1","E:\Testing\Selenium\GIEOM5\upload samples\AddDepartments.xlsx") ControlClick("File Upload","","Button1") This is my webdriver code: String un = GetData.fromExcel(".\\data\\tdata.xlsx", "DP_02", 1, 0); String pwd = GetData.fromExcel(".\\data\\tdata.xlsx", "DP_02", 1, 1); LoginPage l = new LoginPage(driver); l.login(un, pwd); boolean status = driver.findElement(By.cssSelector("div[class='head'] div[class='headTitle small']")).isDisplayed(); Assert.assertEquals(status, true); HomePage h = new HomePage(driver); h.clickUsernameDropdown(); h.clickSettings(); SiteSettingsPage s = new SiteSettingsPage(driver); s.clickManageDepartments(); DepartmentsPage d = new DepartmentsPage(driver); d.clickImportDepartments(); ImportDepartmentsPage id=new ImportDepartmentsPage(driver); //You can see it from here...code above is executing fine.. 1. id.clickBrowseButton(); 2. Runtime.getRuntime().exec(".\\autoit\\AddDepartmentsUploads.exe"); 3. id.clickImportButton(); 4. h.clickLogOff(); Import button is not clicked after file is selected..i feel it is bcoz it is clicked before the autoit file is executed. I have verified that Click on Import button is otherwise working fine bcoz if i commented lines 1 and 2 in the above code and executed it says: 0 records import which is correct acc to my app as no file was imported.(So import button is being located)
@venkateshsivadurga6456
@venkateshsivadurga6456 5 жыл бұрын
Hi Mukesh in local we are able to upload a file using autoit but in Jenkins its not uploading.. Tried with both robo class and autoit in Jenkins. Need your help on this.
@Mukeshotwani
@Mukeshotwani 5 жыл бұрын
Hi Venkatesh ideally it should work if Jenkins in running test on Windows. If Jenkins slave or Jenkins master is running the test on Linux or Any other platform then it wont work. You can pass parameter in url itself.
@steverencilin5602
@steverencilin5602 5 жыл бұрын
@@Mukeshotwani will this work when I run in docker system?
@Mukeshotwani
@Mukeshotwani 5 жыл бұрын
No Steve as of now Docker container are linux containers which does not support exe file.
@steverencilin5602
@steverencilin5602 5 жыл бұрын
@@Mukeshotwani even the autoit doesn't work in windows machine when the Jenkins salve is running as windows service and the system is locked (not logged in), is there any other alternate way to handle this..please refer ...also any reference for passing through as parameter
@asmarazaq9122
@asmarazaq9122 4 жыл бұрын
Hi Mukesh, Safari driver does not support the Action class . What should i use to upload a file as without using Action class; double click is not possible and without double click, file upload pop-up on mac will not appear. Is there any other way to perform double click on Safari without Action class?
@Mukeshotwani
@Mukeshotwani 4 жыл бұрын
Hi Asma, I will record video for this and will upload soon. I just wanted to check did you try with sendKeys()? If it is basic file uploader then we don't need actions class and robot class.
@asmarazaq9122
@asmarazaq9122 4 жыл бұрын
Mukesh I tried sendkeys method as well but the button that clicks ad shows the pop up does not work at all in Safari
@Mukeshotwani
@Mukeshotwani 4 жыл бұрын
ok I will try to upload video. Do you have sample applications?
@asmarazaq9122
@asmarazaq9122 4 жыл бұрын
Mukesh should I send yu code ?
@Mukeshotwani
@Mukeshotwani 4 жыл бұрын
Hi Asma, I have mailed you the solution.
@dipyog1
@dipyog1 9 жыл бұрын
Thanks Mukesh for reply, why i am geting SciTE.exe all file intalling the (.exe), which is not accepting the format for upload the file,
@kalaiselvi-gk8rs
@kalaiselvi-gk8rs 3 жыл бұрын
Autoit finder tool is not highlighting each menu option in desktop application like notepad File menu etc) Can you suggest any finder tool to highlight each menu options?
@nehaagarwal82
@nehaagarwal82 7 жыл бұрын
@Mukesh: Can u please provide a tutorial to upload files using AWT Robot & Jinvoke?
@Mukeshotwani
@Mukeshotwani 7 жыл бұрын
Hi Neha sure will do that soon.
@anilkumar-ds4mu
@anilkumar-ds4mu 7 жыл бұрын
Hi Mukesh, after executed the autoit script when click on attachment button, filepath vanished and file is not attached to the application. Please help. Thanks, Anil K
@sheetalsohal4572
@sheetalsohal4572 7 жыл бұрын
Hi Mukesh.. I tried these steps and on executing the script, I am getting the error: selenium.common.exceptions.NoSuchElementException: Message: Unable to find element with xpath == .//*[@id='1'] on the line where I am using findElement for Browse button (driver is instantiated for IE). Any idea what could be wrong ? Thanks.
@jayantiborde899
@jayantiborde899 5 жыл бұрын
Hello Sir, while Running AutoIT file upload code getting below error in the console can u help. org.openqa.selenium.InvalidArgumentException: Invalid argument
@Mukeshotwani
@Mukeshotwani 5 жыл бұрын
Hi Jayanti, can you share your AutoIT code?
@musratjahan1667
@musratjahan1667 4 жыл бұрын
hi did you solve this problem?? can plz share with me coz I am facing the same problem.
@nathm1526
@nathm1526 7 жыл бұрын
Excellently explained. Thanx a lot
@dipyog1
@dipyog1 9 жыл бұрын
Nice work Mukesh.. Any idea can we upload pic using AutoIT tool, may on google+ or facebook. If u can give any idea just wondering. Thanks
@Mukeshotwani
@Mukeshotwani 9 жыл бұрын
+DIP YOG Hi DIP we can upload any file (in autoit script you have to make changes- in your case specify the path of image) using AutoIT.
@sandhyareddy1298
@sandhyareddy1298 9 жыл бұрын
Hi Mukhesh, This is only to run tests in Window OS , Is there any other tool for Linux ? requirement is to run tests in Jenkins which is in Linux machine
@Mukeshotwani
@Mukeshotwani 9 жыл бұрын
+Sandhya Reddy No try with below link learn-automation.com/how-to-upload-files-in-selenium-webdriver-in-mac-os/
@sandhyareddy1298
@sandhyareddy1298 9 жыл бұрын
+Mukesh otwani Ok, I will try that ... by the way .. I have tried Sikuli .. but it is giving error in ubuntu machine
@EjazAhmed-qn5uw
@EjazAhmed-qn5uw 8 жыл бұрын
+Sandhya Reddy : I found sikuli is working fine on ubuntu
@sandhyareddy1298
@sandhyareddy1298 8 жыл бұрын
Actually the machine ubuntu machine does not has the display So... finally I fixed that issue with direct sendkeys(path of the upload file) with out clicking on browse button
@Mukeshotwani
@Mukeshotwani 8 жыл бұрын
K great
@pratikshaantrang
@pratikshaantrang 7 жыл бұрын
@Mukesh : can u please explain why and when to use AutoIT?
@Mukeshotwani
@Mukeshotwani 7 жыл бұрын
Hi Pratiksha I have explained same in below tutorial learn-automation.com/upload-file-in-selenium-webdriver-using-autoit/
@iburahim786
@iburahim786 7 жыл бұрын
Hi Mukesh 1. How to execute the exe file ruby watir(we are using RSpec frame work), Do u have any Idea. 2. Also if Possible please post some Rspec frame work related. Please help me out.
@Mani-oq2bj
@Mani-oq2bj 6 жыл бұрын
Hi Mukesh! Can't we use Robot class to upload a file. Please clarify me
@Mukeshotwani
@Mukeshotwani 6 жыл бұрын
Yes Manoj there any many ways and Robot class in one of them
@Mani-oq2bj
@Mani-oq2bj 6 жыл бұрын
Mukesh otwani thank you for clarifying my doubt
@AnirudhGarg1123
@AnirudhGarg1123 7 жыл бұрын
Mukesh, Really helpful video... Thanks for uploading it !!
@ankitanamdeo232
@ankitanamdeo232 8 жыл бұрын
can we use autoit for mac? 'or is there other thing in mac to upload file?
@Mukeshotwani
@Mukeshotwani 8 жыл бұрын
Hi Ankita I use Robot class and sikuli to upload file on mac. Please check below guide learn-automation.com/upload-file-in-selenium-in-mac/ learn-automation.com/integrate-sikuli-with-selenium-webdriver/
@Connect2Educate-RamGupta
@Connect2Educate-RamGupta 7 жыл бұрын
Hi Mukesh, Please let me know if there is any video for robot class
@Mukeshotwani
@Mukeshotwani 7 жыл бұрын
Hi Ram, I don't have yet but will upload soon.
@sowjanyajuvvala2698
@sowjanyajuvvala2698 6 жыл бұрын
That was good explanation But am getting input type=file error while clicking on Browse button in page Can you give any suggestion on this
@lliiiBodyiiill
@lliiiBodyiiill 6 жыл бұрын
hey ma friend i have Exception when i try to upload file "The file name is not valid ",, but i tried in this method in last time it working good. thanks for you time :)
@mohiddinmd9681
@mohiddinmd9681 8 жыл бұрын
Hi Mukesh, can u pls upload the basics classes of AutoIT. because i'm not understanding this concept which i faced in interview
@Mukeshotwani
@Mukeshotwani 8 жыл бұрын
We used only some part of AutoIT which is required.
@kkartkk9372
@kkartkk9372 3 жыл бұрын
Hi Unable to click the button .getting invalid arguments exception. Can you please help on this
@Mukeshotwani
@Mukeshotwani 3 жыл бұрын
Hi Mate, seems some syntax issue in your AutoIT file. Please double check from your end.
@ganeshgulshette6399
@ganeshgulshette6399 7 жыл бұрын
Hi mukesh if we want to open the .exe file from the c folder using the autoit
@shabnamchoudhary8020
@shabnamchoudhary8020 7 жыл бұрын
Hello Sir.....I have done some automation. Where we need to upload file one by one of different scenarios. My code is right. But the problem is with robot class. Sometimes its missing to key press ENTER and my whole program becomes unstable... In your video I saw AutoIT. But is only for one specific file...My file name changes with scenario name...It gets file path from excel sheet. Sir,Will you please help me in this..ITS VERY IMP TO ME.
@kshipra4504
@kshipra4504 2 жыл бұрын
When I run the program, auto it.exe disappears from the folder. Why is this happening?
@Mukeshotwani
@Mukeshotwani 2 жыл бұрын
Hi Shipra, most of the antivirus deletes exe files.
@kspuwal
@kspuwal 8 жыл бұрын
Hi Mukesh, tnx for this nice video
@Mukeshotwani
@Mukeshotwani 8 жыл бұрын
+kspuwal ur most welcome
@shivakumarcherala8339
@shivakumarcherala8339 5 жыл бұрын
Can you please tell me How can we give the File path and name at RunTime from property file?
@Mukeshotwani
@Mukeshotwani 5 жыл бұрын
Hi Shiva you can pass parameters as well in AutoIT, here is one simple guide for same just follow the document step by step learn-automation.com/upload-multiple-files-in-selenium-webdriver/
@AbhishekMishra-ru2fi
@AbhishekMishra-ru2fi 8 жыл бұрын
Hi Mukesh, why id="1" wont worked but xpath?Please clarify. Thanks, Abhishek Sagar
@Mukeshotwani
@Mukeshotwani 8 жыл бұрын
Its working I checked now
@AbhishekMishra-ru2fi
@AbhishekMishra-ru2fi 8 жыл бұрын
Thanks for the reply Mukesh.I will recheck.
@luckysaini1990
@luckysaini1990 4 жыл бұрын
Good. File uploaded. Thanks Sir....
@Mukeshotwani
@Mukeshotwani 4 жыл бұрын
Cheers Gurdeep
@jony-zt3in
@jony-zt3in 4 жыл бұрын
How i can "paste" from clipboard something like that ( ControlSetText("Open"," ","Edit1",ControlV); )
@Mukeshotwani
@Mukeshotwani 4 жыл бұрын
Yes Jony, you can use ^v . Please refer www.autoitscript.com/autoit3/docs/functions/Send.htm
@minalvichare4126
@minalvichare4126 7 жыл бұрын
Hi Mukesh, I followed the same steps,but I am getting org.openqa.selenium.UnhandledAlertException: Modal dialog present. But when i directly run the program using run script,I am able to do so. Please help.
@Mukeshotwani
@Mukeshotwani 7 жыл бұрын
Hi Minal make sure if alert comes then only call the method..
@sanjibsarkar9565
@sanjibsarkar9565 2 жыл бұрын
How to execute AutoIT script on Remote machine. I think that is the main challenge. Please explain if possible.Thanks
@Mukeshotwani
@Mukeshotwani 2 жыл бұрын
Hi Sanjib, if remote machine is Windows then process is same just make sure keep file in project directory and test should not run in headless mode.
@SaikiranPalugula
@SaikiranPalugula 9 жыл бұрын
Hi Mukesh, After creating the file with .au3 extension and when we right click on that file it is not showing any options like Compile script(x64), compile script(x86) how can i compile the file with .au3 extension. kindly help me in this
@Mukeshotwani
@Mukeshotwani 8 жыл бұрын
+Saikiran Palugula Hi Sai isit fixed?
@swarnakancharla4782
@swarnakancharla4782 7 жыл бұрын
Hi Mukhesh, thank you for your explanation,your helping well, am facing an error "error parsing function call" when try to run the .exe file . Showing error At :Line1 (File:"C:\Users\msi\Desktop\AutoIt\Fileuload.exe"). Help me pls
@Mukeshotwani
@Mukeshotwani 7 жыл бұрын
Hi Swarna seems some issue with autoit script kindly send details to mukeshotwani@learn-automation.com
@swarnakancharla4782
@swarnakancharla4782 7 жыл бұрын
Thank you for your response mukhesh, i shared scripted code with you,please go through that..
@prateekshrivastava4398
@prateekshrivastava4398 7 жыл бұрын
Thank u so much, nice clean, simple explanation
@toyworld1745
@toyworld1745 6 жыл бұрын
awsm explaination sir...thank you
@Mukeshotwani
@Mukeshotwani 6 жыл бұрын
Most welcome Priya. I am glad you liked it. Keep learning.
@adityadeshmukh8927
@adityadeshmukh8927 5 жыл бұрын
Thanku so much. but in my when I compiled and double click it's not generate file path. It shows one box in file browse window
@Mukeshotwani
@Mukeshotwani 5 жыл бұрын
Hi Adiyta, once you get exe use that exe in Script. Note- Make sure file uploader is opened while running exe manually.
@dkpradeepa7574
@dkpradeepa7574 3 жыл бұрын
Runtime.getRuntime().exec for java...can you tell me the replacement for the c# program..?
@bhagyakudupudi2302
@bhagyakudupudi2302 3 жыл бұрын
Hi Mukesh. I am getting "org.openqa.selenium.InvalidArgumentException" exception and unable to click on "Upload" button. What could be the issue?
@bhagyakudupudi2302
@bhagyakudupudi2302 3 жыл бұрын
driver.get("demo.automationtesting.in/Register.html"); driver.findElement(By.xpath("//input[@id='imagesrc']")).click(); -- error thrown in this line
@Raj-vlog-entertainment
@Raj-vlog-entertainment 7 жыл бұрын
Hi Mukesh, I have a windows authentication popup and I am automating a scenario to fill the values in the popup from excel sheet. I am stuck and could not find anything related to this. Please assist. Regards
@Raj-vlog-entertainment
@Raj-vlog-entertainment 7 жыл бұрын
Hi Mukesh, any suggestion regarding this.
@NGCTec
@NGCTec 5 жыл бұрын
While performing file upload i got an exception org.openqa.selenium.InvalidArgumentException : Cannot click elements Would you help me to solve this
@iamsrikanth86
@iamsrikanth86 6 жыл бұрын
How can we execute autoit exe file from javascript or node js using selenium, Hope will get answer
@prabuyuvi839
@prabuyuvi839 4 жыл бұрын
Bro after I save the au3 file, autoit icon not came in that file&if I right click compile option is not there can u help me to solve this?
@amithanayak4046
@amithanayak4046 6 жыл бұрын
Thanks for this video.. it worked but perfectly fine on my laptop but it's not working on the PC.... Any idea why?! 😕 Need this urgently...
How to upload multiple files in Selenium using AutoIT
9:05
Mukesh otwani
Рет қаралды 40 М.
How to Capture Screenshot in Selenium Webdriver
26:03
Mukesh otwani
Рет қаралды 201 М.
小路飞和小丑也太帅了#家庭#搞笑 #funny #小丑 #cosplay
00:13
家庭搞笑日记
Рет қаралды 17 МЛН
Support each other🤝
00:31
ISSEI / いっせい
Рет қаралды 49 МЛН
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 26 МЛН
Каха и дочка
00:28
К-Media
Рет қаралды 1,6 МЛН
How to handle hidden webelements in Selenium Webdriver
21:19
Mukesh otwani
Рет қаралды 126 М.
Wait for File Download using FluentWait in Selenium
14:54
Naveen AutomationLabs
Рет қаралды 11 М.
How to execute failed test cases in Selenium webdriver
17:09
Mukesh otwani
Рет қаралды 97 М.
File Upload using Robot Class in Selenium
18:43
Krishna Sakinala (Automation Testing)
Рет қаралды 50 М.
File Upload Selenium using C#  NET
15:29
Sandeep Kumar
Рет қаралды 29 М.
Lada Aura - полный разбор на компоненты.
43:47
Клубный сервис
Рет қаралды 164 М.
小路飞和小丑也太帅了#家庭#搞笑 #funny #小丑 #cosplay
00:13
家庭搞笑日记
Рет қаралды 17 МЛН