[wtr-general] Re: Watir Logo Refresh Competition
Yes, please feel free to send one through. Thanks, Alister --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: How do i read a .txt file using watir script
were you able to find a solution? On Sep 14, 6:36 am, msazeez28july sabdulkha...@gmail.com wrote: Hi, We have watir scripts which requires url, username, password and path (location of the datatables). These parameters are changing depends upon the server where application is deployed. I would like to put these information inside a .txtfilelike belo url =http://198.44.23.11/DemoApplication.WebUI username = admin password = adm...@# path = D:\Watir\WatirScripts Now i need to access the above .txtfileusing watir scripts like openfile,readline by line and store each word in a array then use array elements to get exact values for each parameters and store it on respective variables to use inside scripts. Could you please let me know, whether we can able to open afile andreadline by line using watir scripts. Does watir has class or library to supportfileopen inread/write/append modes. Please let me know. Thanks in advance. Regards Syed --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: How do i read a .txt file using watir script
like said begin file = File.new(readfile.txt, r) while (line = file.gets) puts #{counter}: #{line} counter = counter + 1 end file.close rescue = err puts Exception: #{err} err end the above script reads your readfile.txt line by line, the string variable line can be inturn splitted using = sign as the separator and then splitted string could be copied into a hashed array by the Watir is just a browser driver (the best one :), inorder to do all such things you need to know Ruby. From Karim Rayani http://karimnumerouno.wordpress.com On Sat, Sep 19, 2009 at 7:34 PM, crsna g.inamp...@gmail.com wrote: were you able to find a solution? On Sep 14, 6:36 am, msazeez28july sabdulkha...@gmail.com wrote: Hi, We have watir scripts which requires url, username, password and path (location of the datatables). These parameters are changing depends upon the server where application is deployed. I would like to put these information inside a .txtfilelike belo url =http://198.44.23.11/DemoApplication.WebUI username = admin password = adm...@# path = D:\Watir\WatirScripts Now i need to access the above .txtfileusing watir scripts like openfile,readline by line and store each word in a array then use array elements to get exact values for each parameters and store it on respective variables to use inside scripts. Could you please let me know, whether we can able to open afile andreadline by line using watir scripts. Does watir has class or library to supportfileopen inread/write/append modes. Please let me know. Thanks in advance. Regards Syed --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---