Skip to main content

Uploading files through Selenium using AutoIT

Selenium is a widely used test automation tool especially during web-based apps testing. It comes with a set of diverse software tools each enabling rich test automations across different functions of the dynamic web app testing. There are many advantages of using Selenium, yet there are some snags that may be addressed with thirty party tools.
File uploads to a HTML5-based web application from local directory system is one such scenario where Selenium is not much of a help. However, this limitation of Selenium can be overcome using a third-party tool called AutoIT which is a freeware BASIC-like scripting language designed for automating the Windows GUI and general scripting.
 Here are the 2 steps making it possible:
  • Creating AutoIT code that uploads file to an application
  • Calling this AutoIT code inside Selenium script
For more detailed steps, visit here https://goo.gl/Jv4gr7

Comments

Popular posts from this blog

Future Focus Infotech Digital Business & Transformation | Introduction

About Us Future Focus Infotech Pvt. Ltd. (FFI) – an established IT solutions provider for 20 years – offers innovative software services . Resources define the competency of an IT services organization and we have proven track record of operating a successful offshore/onshore model. The US office (Focus America Inc) was established in 2000 and the UAE (Future Focus Infotech FZE) in 2011. Our large pool of resources include 3,500+ skilled/trained employees in IT Solutions and Infrastructure Management – who are available offshore in India, US, and UAE with a “ready-to-serve” attitude. With such a diverse presence, we are successfully expanding into other markets proving ourselves as a global professional services firm. A unique combination of our quality processes, information security standards and ISO certifications brings us repeat business for high-class projects from our Tier 1 clients. Being ISO 9001 certified since 2005, our approach is always quality led. Our Qualit...

Implementing md-autocomplete with AngularJs

AngularJS  is a JavaScript-based open-source front-end web application framework that is incredibly popular among developers as it provides  an excellent  toolset  to build an application most dynamically with rich interactive features and functionalities  for a real-time experience. Mostly used in  Single Page Application (SPA) projects,  AngularJS models are JavaScript objects which makes it easy to code, test, maintain reuse, and most importantly free. When it comes in one of its input   component called “md-autocomplete” these are the points to consider while implementing it during development.   It displays a dropdown of all possible matching content to user’s query. User will be able to pick required content from the drop-down that would have all the potential matches based on the search characters entered by him/her. md-autocomplete is different from browser’s autofill feature. It allows user to key-in any value bu...

Identify Web Elements using Selenium Xpath Locator

As we all know, Web elements are present diversely (Dropdown, Check Box, Text Box, Radio Button, etc.) in a Web page. And locators are our saviours, right from helping us identify a Web element uniquely within the page to enunciate its HTML properties and informing Selenium about the action to be performed. For example, the Dropdown mandatory field “Highest Qualification” is not with Select Class in the Web page. It is difficult to find the Web element for that field. To resolve this, one may use Xpath Locator and find the element for the “Highest Qualification” field. Also they should try to select the Dropdown field value “Masters” making use of the Action Class. You can find the script but in that, using the Action Class to find the element for the mandatory “Highest Qualification” field will not be fruitful. You may have to apply the Contains text method to find out the element for the Xpath. Identifying Web elements is always a sensitive area and mandates a pr...