ankit14 Posted June 27, 2013 Share Posted June 27, 2013 Hi, I need some help in here. I am doing some automation in selenium, which needs use of autoit to handle some task. My task is : I have to click a link on Firefox so download dialog box(window popup not browser) will appear and (USE OF AUTOIT START HERE) than i have to open file(file is txt so will open in notepad). Now i have to assert that file has some particular line in that notepad file and have copy that text and send it to my selenium script. While doing this My Selenium script should wait for the result, or may take input from autoit about that line. If that line is present script should move forward else should fail. I am have automated upto opening my file in notepad but problem is how to get some return value from autoit (complete line if possible if not atleast some return value lik 0,1,2 etc) and how to wait in selenium till that value comes. Can you please help me with this. Thanks Link to comment Share on other sites More sharing options...
ankit14 Posted July 4, 2013 Author Share Posted July 4, 2013 Can anyone atleast tell if this is possible?? Link to comment Share on other sites More sharing options...
Danyfirex Posted July 4, 2013 Share Posted July 4, 2013 Yes, it is. Danysys.com AutoIt... UDFs: VirusTotal API 2.0 UDF - libZPlay UDF - Apps: Guitar Tab Tester - VirusTotal Hash Checker Examples: Text-to-Speech ISpVoice Interface - Get installed applications - Enable/Disable Network connection PrintHookProc - WINTRUST - Mute Microphone Level - Get Connected NetWorks - Create NetWork Connection ShortCut Link to comment Share on other sites More sharing options...
scubar Posted July 4, 2013 Share Posted July 4, 2013 Not sure if this is the right way of doing it but you could potentially set the Exit code to the value you want. The parent script could then capture that into a variable that calls the child script ? Link to comment Share on other sites More sharing options...
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