Julius1 Posted August 13, 2018 Posted August 13, 2018 Good Morning! I try to automate webside handling with Selenium (protractor) on Edge. I have problems with file upload. Edge should provide an element 'input[type="file"]' but it does'nt. So I discovered autoIT to solve it. The idea is to install autoit, insert var au = require('autoit'); into my selenium code and work with au.function1(...) Is this possible and do I find examples for that here? If not I have to write an autoit script and call it, I suppose. BR Julius
Moderators JLogan3o13 Posted August 13, 2018 Moderators Posted August 13, 2018 Moved to the appropriate forum, as the Developer General Discussion forum very clearly states: Quote General development and scripting discussions. If it's super geeky and you don't know where to put it - it's probably here. Do not create AutoIt-related topics here, use the AutoIt General Help and Support or AutoIt Technical Discussion forums. Moderation Team "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
orbs Posted August 13, 2018 Posted August 13, 2018 (edited) are you constrained to using Selenium? if so, Selenium supports WebDriver API, so your Selenium script does not really need AutoIt. AutoIt supports several methods to interact with web pages, so you need to properly define your requirements for a more specific AutoIt-based solution. Edited August 13, 2018 by orbs Signature - my forum contributions: Spoiler UDF: LFN - support for long file names (over 260 characters) InputImpose - impose valid characters in an input control TimeConvert - convert UTC to/from local time and/or reformat the string representation AMF - accept multiple files from Windows Explorer context menu DateDuration - literal description of the difference between given dates WinPose - simultaneous fluent move and resize Apps: Touch - set the "modified" timestamp of a file to current time Show For Files - tray menu to show/hide files extensions, hidden & system files, and selection checkboxes SPDiff - Single-Pane Text Diff Magic Math - a math puzzle Demos: Title Bar Menu - click the window title to pop-up a menu
Julius1 Posted August 13, 2018 Author Posted August 13, 2018 43 minutes ago, orbs said: are you constrained to using Selenium? if so, Selenium supports WebDriver API, so your Selenium script does not really need AutoIt. AutoIt supports several methods to interact with web pages, so you need to properly define your requirements for a more specific AutoIt-based solution. Hi orbs, I did the tests in Selenium so far. Now I can not upload a file into Edge with Selenium. I thought, autoIt was a possibility to perform the upload in a script which I can call out of Selenium. So my requirements are, getting an autoIt script that performs file upload, calling it with the parameter 'filename'. Do you think this is possible, or do you know a better way?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now