Re: [wtr-general] Issue with Watir Installation
Hello, If you are using WinXP, click on Start - Run and launch msconfig.exe Click on Services, find the Remote Procedure Call item and try to start it. FK On Mon, Jun 21, 2010 at 9:31 AM, Betsy joybe...@gmail.com wrote: Hi, I have written an script like:- 1)Open Webbrowser 2)Open Google.com 3)Now setText on the textBox then 4)Click on the Button. my problem is that Text is not being set into the TextBox, and if i am runnig this Script on the other system, it is working properly. I have reinstall Ruby many times but problem still persist. my Script is: require watir url=www.google.co.in ie=Watir::IE.new ie.bring_to_front ie.maximize ie.goto url t=ie.text_field(:name,q) t.set(Delhi) b=ie.button(:name,btnG) b.click sleep(2) ie.close -- I also copied the whole Rubi folder from other system to my system .But problem still persist. and when i executed gem install watir then command prompt hangs out. Error msg: ruby google.rb c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/ie-class.rb: 460:in `method_missing': unknown property or method `document' (WIN32OLERuntimeError) HRESULT error code:0x800706ba The RPC server is unavailable. from c:/ruby/lib/ruby/gems/1.8/ gems/watir-1.6.5/lib/watir/ie-class.rb:460:in `document' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/ container.rb:800:in `locate_input_element' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/ input_elements.rb:5:in `locate' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/element.rb: 53:in `assert_exists' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/element.rb: 288:in `enabled?' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/element.rb: 60:in `assert_enabled' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/ input_elements.rb:327:in `set' from google.rb:8 Exit code: 1 = -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
[wtr-general] Regarding Script
Hi, I have written an script like:- 1)Open Webbrowser 2)Open Google.com 3)Now setText on the textBox then 4)Click on the Button. my problem is that Text is not being set into the TextBox, and if i am runnig this Script on the other system, it is working properly. I have reinstall Ruby many times but problem still persist. my Script is: require watir url=www.google.co.in ie=Watir::IE.new ie.bring_to_front ie.maximize ie.goto url t=ie.text_field(:name,q) t.set(Delhi) b=ie.button(:name,btnG) b.click sleep(2) ie.close -- Please tell me the Proper solution -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
[wtr-general] Re: Watir and Micorosft Server reports
How do i tell Ruby to stop test case and start with tearDown? Does anyone have experiances with testing web pages created with Microsoft sql report? br, Dani On 10 jun., 10:53, Danijel danijel.vuko...@gmail.com wrote: I'm doing on pages, which are created by Microsoft SQL Report and i have problems with then when i use watir i have this code, and i made work around, but still is not working properly $ie.link(:url, 'https://' + $server + '/Pages/Reports/ CrooView2.aspx').click $ie.text_field(:id, 'ctl00_ContentMain_txtJMBG').set(pib) $ie.select_list(:id, 'ctl00_ContentMain_cmbStatus').select_value('') $ie.button(:id, 'ctl00_ContentMain_btnShowReport').click! - i click and do not wait #loading is used from pagehttp://wiki.openqa.org/display/WTR/How+to+wait+with+Watir until loading?(false) == false puts loading end # wait if element is visible , say it si visible, this function with smae paramteres was tested and works fine watifor_visible_element_id('//div[1]/table/tbody/tr[4]/td[2]/table/ tbody/tr[3]/td[2]/div', 'xpath') # element is not found if( status != $ie.div(:xpath,'//div[1]/table/tbody/tr[4]/td[2]/table/ tbody/tr[3]/td[2]/div').text) return nil end Where i did a workaournd: - $ie.button(:id, 'ctl00_ContentMain_btnShowReport').click! - until loading?(false) == false puts loading end it si not working properly because page is loading and it is finished with page - watifor_visible_element_id('//div[1]/table/tbody/tr[4]/td[2]/table/ tbody/tr[3]/td[2]/div', 'xpath') here i watit foer elemtn to be visible and test when is finished is not stoped, it is still working. Manualy SQL reports works great, but they are unrecognizable to a watir, watir don't know to handle this pages, thats why is this wery big problem of testing. -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Re: Watir and Micorosft Server reports
On Mon, Jun 21, 2010 at 3:06 PM, Danijel danijel.vuko...@gmail.com wrote: How do i tell Ruby to stop test case and start with tearDown? If you use test/unit or rspec framework, teardown is run after each test or spec. That is, if I understood what you are asking. I do not see teardown in your code. Željko -- watir.com - community manager watirpodcast.com - host testingpodcast.com - audio podcasts on software testing. all of them vidipodkast.com - pričamo o hardveru, softveru i časopisu Vidi -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Re: Insertion of data into oracle database through watir script
2010/6/21 naresh nareshvatsa...@gmail.com I want to take value from textfields, combobox, radiobutton, dropdownlist. Please read this: http://wiki.openqa.org/display/WTR/tutorial Željko -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
[wtr-general] Re: Recent Stack Overflow Questions Tagged Watir
Automating Web Access and Watir http://stackoverflow.com/questions/3073385 Željko -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
[wtr-general] Re: Watir site at stackexchange.com
On Thu, Jun 17, 2010 at 5:39 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: - go to http://area51.stackexchange.com/proposals/6738/watir?referrer=cBxk1oncaoo1 - click link Follow It! - enter your e-mail - click button Submit Update: the site has 21 followers. To move to the next phase we still need 39 followers, 5 on-topic questions and 5 off-topic questions. Please post questions (on- or off-topic), vote on existing questions (are they on- or off-topic). You can also comment the questions. The site will not be created if we do not form a community there. Feel free to spread the word on your Twitter/Facebook/blog... If you have any questions, I will be more than glad to answer, if I can. Just to make it clear, the site is in definition phase, meaning that we have do decide as a community what the site should look like. We should decide which questions are on- or off-topic. Please do not post answers to questions, just vote and comment. I plan to write a blog post explaining in more detail why I think this is so important for Watir community. I would also like to record a podcast about the site. I am looking for one or two people that would talk for about 30 minutes with me. Interested? Željko -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Re: Watir site at stackexchange.com
Just wanted to add something -- that URL is pretty long and sometimes hard to remember...maybe we can/should do more of these: * http://tinyurl.com/stackexchange-watir* 2010/6/21 Željko Filipin zeljko.fili...@wa-research.ch On Thu, Jun 17, 2010 at 5:39 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: - go to http://area51.stackexchange.com/proposals/6738/watir?referrer=cBxk1oncaoo1 - click link Follow It! - enter your e-mail - click button Submit Update: the site has 21 followers. To move to the next phase we still need 39 followers, 5 on-topic questions and 5 off-topic questions. Please post questions (on- or off-topic), vote on existing questions (are they on- or off-topic). You can also comment the questions. The site will not be created if we do not form a community there. Feel free to spread the word on your Twitter/Facebook/blog... If you have any questions, I will be more than glad to answer, if I can. Just to make it clear, the site is in definition phase, meaning that we have do decide as a community what the site should look like. We should decide which questions are on- or off-topic. Please do not post answers to questions, just vote and comment. I plan to write a blog post explaining in more detail why I think this is so important for Watir community. I would also like to record a podcast about the site. I am looking for one or two people that would talk for about 30 minutes with me. Interested? Željko -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- Nathan Lane Blog, http://blog.nathandelane.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com