[wtr-general] Re: Handling Choose a digital certificate
If you know the exact line number in which the certificate exists, can you try tabbing to that line item and hitting enter with rautomation. Something like this? w = RAutomation::Window.new(:title = /digital certificate/i) w.send_keys('{TAB}') w.send_keys('{TAB}') w.send_keys('{ENTER}') -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com --- You received this message because you are subscribed to the Google Groups Watir General group. To unsubscribe from this group and stop receiving emails from it, send an email to watir-general+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[wtr-general] Re: Handling Choose a digital certificate
I have been struggling with this for some time now as well and surprised that it seems no one has had the need to solve this. We too have many certs installed on a given test machine for QA/Prod/Staging, etc. So we need the cert window to display and we need to select the correct certificate from the list. I have been able to get to the point of seeing the windows security window and the buttons, but I am unable to get to the list of the certificates. On Monday, August 6, 2012 10:22:39 PM UTC-7, DKell wrote: Hi Bala, I am having the exact same problem that you are describing here. Did you ever work out a technique to get the contents of the Digital Certificate listbox? I'd be really keen to hear if you were able to do it. Regards, DKell On Wednesday, 28 September 2011 02:17:39 UTC+13, bala wrote: Hi, Pardon my ignorance and bear with me. I am very new to Watir / Watir- Webdriver. I still playing with it to see whether I can stick to watir as my long term tool for my testing needs. My project uses digital certificates, so when I visit the url using Internet Explorer I am presented with a window with all installed certificates. I would like to know how to navigate through the list and select a particular certificate using Watir/Watir-Webdriver. Can somebody help me? Also I am making a recommendation to my project on automation tool (we have just started) so can anyone recommend whether to stick to Watir or Watir-Webdriver? Thanks in advance Bala -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com --- You received this message because you are subscribed to the Google Groups Watir General group. To unsubscribe from this group and stop receiving emails from it, send an email to watir-general+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[wtr-general] Re: Handling Choose a digital certificate
Chuck Any URL that implements a Certificate based authentication would show up a windows with a list of certificates installed from the underlying OS (let us say windows machine) to select from. A sample window can be seen here http://demo.imcwv.com/doc/WSSRDdoc_files/image037.jpg http://www.wurthnet.com/help/images/graphic/clientauthentication_en.jpg This is a native OS window (as for as I am aware) thanks in advance for trying cheers -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
[wtr-general] Re: Handling Choose a digital certificate
Looking at the RDoc for RAutomation, http://rubydoc.info/gems/rautomation/frames I see it appears to inherit a list_box method from WinFFI, and the object returned by that method also supports things like listing the items, selecting something, etc. Looking at the issues on Git, I notice there is already a feature request for better listbox support (https://github.com/jarmo/ RAutomation/issues/12) so you might want to weigh in on that and indicate why you would find that feature handy. In the meantime it seems like you would need to use the methods from WinFFI to get the list of items (strings?) in the listbox, determine if the one you want is there and get it's index, and then select the item (by index?) You should be able to identify the window by its title, but unfortunately I'm not sure how you would identify the listbox. (I don't know the ffi code well enough to know what a valid identifier looks like, but if I was experimenting I'd presume it's a hash similar to watir, and given your window, with one listbox, I'd try using (:index = 0) as a hunch (or if it's very close to watir, you might be able to leave it off and have it default to index 0) See the basic 'useage' info here https://github.com/jarmo/RAutomation to get started with the window itself. Play around trying stuff in IRB just using what you'd expect to work for watir. First create a window object using the examples given in the basic usage stuff, then see if you can get a list of items in the list_box etc. Perhaps Jarmo or someone else could make some suggestions as to how you would go about finding and selecting an item from within a listbox, before clicking the OK button in that particular bit of UI. On Nov 11, 5:16 am, bala balachandran.kan...@gmail.com wrote: Chuck Any URL that implements a Certificate based authentication would show up a windows with a list of certificates installed from the underlying OS (let us say windows machine) to select from. A sample window can be seen here http://demo.imcwv.com/doc/WSSRDdoc_files/image037.jpghttp://www.wurthnet.com/help/images/graphic/clientauthentication_en.jpg This is a native OS window (as for as I am aware) thanks in advance for trying cheers -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
[wtr-general] Re: Handling Choose a digital certificate
It might help if you explained the path you traverse to get to this window. I for one am not familiar with it, so it's difficult for me to tell you what to do to automate picking a certificate.. to start with, is this a web UI, or native OS? if it's a web page, can you provide sample HTML please? On Sep 30, 3:02 am, bala balachandran.kan...@gmail.com wrote: Can some one tell how to how to reference the certificateselection window which is a list_box with RAutomation? I tried something like this, but it returned no items. require rautomation require watir-webdriver b = Watir::Browser.new :ie b.goto(url) [...now the choose a digitalcertificate window opens...] w = RAutomation::Window.new(:title = /digitalcertificate/i) [Now select acertificateby its name. To do that I need to get the handle of list box first, so that I can refer by items[]. I could not do it because I dont know what an id is...I tried several things like this ] lb = w.list_box(:id = [what do i write here]) lb = w.list_box(:class = /ListBox/i) lb = w.list_box(:text = /CertificateList/i) Any help please? -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
[wtr-general] Re: Handling Choose a digital certificate
Has no one used Watir/Watir-Webdriver with Rautomation or Autoit on a SSL site to select a specific certificate? Are my stakeholders right when they say never heard of watir, probably not a tool to use at this moment?. Come on guys, someone must have used Watir/Watir- Webdriver to select a specific certificate? I can feel the power of Wat* over selenium but I need to prove it...the time is tickinganyone... Its really strange that people invest such an effort and time to produce something beautiful as Watir yet keep it a secret by not making it easier for newbies to use it... what's the point?. On Sep 30, 12:02 pm, bala balachandran.kan...@gmail.com wrote: Can some one tell how to how to reference the certificate selection window which is a list_box with RAutomation? I tried something like this, but it returned no items. require rautomation require watir-webdriver b = Watir::Browser.new :ie b.goto(url) [...now the choose a digital certificate window opens...] w = RAutomation::Window.new(:title = /digital certificate/i) [Now select a certificate by its name. To do that I need to get the handle of list box first, so that I can refer by items[]. I could not do it because I dont know what an id is...I tried several things like this ] lb = w.list_box(:id = [what do i write here]) lb = w.list_box(:class = /ListBox/i) lb = w.list_box(:text = /Certificate List/i) Any help please? -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
[wtr-general] Re: Handling Choose a digital certificate
Can some one tell how to how to reference the certificate selection window which is a list_box with RAutomation? I tried something like this, but it returned no items. require rautomation require watir-webdriver b = Watir::Browser.new :ie b.goto(url) [...now the choose a digital certificate window opens...] w = RAutomation::Window.new(:title = /digital certificate/i) [Now select a certificate by its name. To do that I need to get the handle of list box first, so that I can refer by items[]. I could not do it because I dont know what an id is...I tried several things like this ] lb = w.list_box(:id = [what do i write here]) lb = w.list_box(:class = /ListBox/i) lb = w.list_box(:text = /Certificate List/i) Any help please? -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
[wtr-general] Re: Handling Choose a digital certificate
Hi Tiffany Thanks for the reply. My idea is to install as many as certificates in all machines that will be used for execution. Each certificate has specific roles within the application and this would allow me to run any test script in any machine remotely. This enables me to send certificate name/id to be used as a parameter (which is present in my cucumber script). So, when a script is sent to a machine for execution, it checks the certificate parameter, loads the certificate with the help of RAutomation and then execute/test the functionality. Now I am trying to figure out how to navigate to a specific certificate and press OK button. I am not sure how to do that :-). -Bala -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
[wtr-general] Re: Handling Choose a digital certificate
Hi, Thanks for the help. I am now able to access the certificate window. But could not figure out how to navigate and select one certificate. can you please help me here. On Sep 28, 3:26 pm, Super Kevy kpe...@scholarshipamerica.org wrote: Please checkhttp://rubygems.org/gems/rautomation And search the group for rautomation Alternately there are a number of methods using autoIT -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
[wtr-general] Re: Handling Choose a digital certificate
Hi Bala! One of the applications I test uses a digital certificate, but I just install it manually on the machines I use for automated testing. After that first install, I'm not prompted to install it again until the certificate changes. Apologies if your implementation is different or if you want to test the certificate installation with Watir. -Tiffany On Sep 28, 8:46 am, bala balachandran.kan...@gmail.com wrote: Hi, Thanks for the help. I am now able to access the certificate window. But could not figure out how to navigate and select one certificate. can you please help me here. On Sep 28, 3:26 pm, Super Kevy kpe...@scholarshipamerica.org wrote: Please checkhttp://rubygems.org/gems/rautomation And search the group for rautomation Alternately there are a number of methods using autoIT -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com