[wtr-general] Re: My blog about Watir and RSpec
I asked Tiffany, because she said about looking forward to reading more, thus I was just interested how will she manage to do that technically. Just like a market-survey :) Jarmo On Feb 15, 7:00 pm, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Sun, Feb 14, 2010 at 5:29 PM, Jarmo Pertman jarm...@gmail.com wrote: Just wondering, how do you look forward? Did you subscribe to the RSS feed or just will revisit the site or how? Not sure if you asked just Tiffany or all of us, but I subscribe to feed. Željko -- 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] watir suite hanging issue
Hi All, This is Mahesh. Am new to this community and this is my first post. please share if you have any idea for the below problem I'm working with a web applicatio that sometimes hangs in the middle of a test. Is there a way to automate this with Watir? (way to proceed by refreshing the browser) I do something like this: * Start the test suite * Monitor browser activity. If there is no response/activity for a certain amount of time, refresh the browser and try to continue. * Finish the test. Regards, Mahesh -- 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: My blog about Watir and RSpec
Plesae keep them coming. I tend to load up a bunch of pages in my browser and then refresh at a regular interval. Every day for example when I come home from the office. I only tend to keep very active things on RSS feeds, like usenet lists etc. Great Blog, please keep at it. I've learnt quite a bit already. On Feb 16, 5:29 pm, Jarmo Pertman jarm...@gmail.com wrote: Thanks :) There will be some more Watir / RSpec posts of course. I have to start writing my diploma thesis soon and it will be (hopefully) one big part of it. If all goes well. Jarmo On Feb 15, 6:59 pm, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Thu, Feb 11, 2010 at 10:34 PM, Jarmo Pertman jarm...@gmail.com wrote: Also, what should I do to get my blog listed athttp://watir.com/blogs/ You just have to aks (and have some Watir posts, of course). :) I have added your blog to watir.com/blogs. I did not have the time to read all of your posts, but I have took a quick look and subscribed to the feed. Željko -- watir.com - community manager pledgie.com/campaigns/2982 - donate to Watir watirpodcast.com - host testingpodcast.com - podcasts on software testing. all of them- Hide quoted text - - Show quoted text - -- 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] String to watir object
Hi, I have a string value of :href and want to use it in ie.link(:href, 'bla').click. So the value of :href in the link function must be replaced by the string value. Therefore I need to do some conversion I think, but I don't know how. Any suggestion? Cheers, John -- 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
Re: [wtr-general] String to watir object
On Tue, Feb 16, 2010 at 3:37 PM, JArkelen johnvanarke...@gmail.com wrote: I have a string value of :href and want to use it in ie.link(:href, 'bla').click. Can you provide more data? How does your script looks like? This does not work? how = :href browser.link(how, bla).click You can convert strings to symbols, if that is what you want: cat.to_sym = :cat http://ruby-doc.org/core/classes/String.html#M000810 Željko -- watir.com - community manager pledgie.com/campaigns/2982 - donate to Watir watirpodcast.com - host testingpodcast.com - podcasts on software testing. all of them -- 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
Re: [wtr-general] My blog about Watir and RSpec
On Thu, Feb 11, 2010 at 10:34 PM, Jarmo Pertman jarm...@gmail.com wrote: i'm waiting for any feedback I am reading your posts, and my first feedback would be to slightly increase font size on your blog. :) Željko -- 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: Firewatir cannot find an element on the page
Any updates on this? Thanks. On Feb 11, 1:06 pm, QAguy qablogm...@gmail.com wrote: You need to register as a user and verify your account (its free). Then upload a video and go to the folder that video is in. Once in the folder select the checkbox for that video and click the move option from the menu bar. On Feb 10, 3:03 am, Angrez Singh ang...@gmail.com wrote: When I went to the website it is asking for username password? How to move forward? Can you tell me the steps on how to go to the page where you are experiencing the problem in finding the element? Thanks, Angrez On Tue, Feb 9, 2010 at 11:34 PM,QAguyqablogm...@gmail.com wrote: Ok on the folder page if you select a video via a checkbox select and click the move option this is being invoked: li span class=tiny_dot nbsp; /span a onfocus=if(this.blur)this.blur(); onclick=MOBX.Modal.show('move', { folder_id: 706027, verbose: true}); return false; href=#Move/a /li This opens the modal window with the following code: div class=motionbox_content id=modal_dialog_1265738543319_content style=overflow: auto; height: 400px; width: 700px;div class=motionbox_message id=modal_dialog_messagediv class=modal_header div class=modal_header_buttons a href=javascript:MOBX.Folders.restoreStateAndCloseWindows() class=button tool tool_button cancel span class=left /span span class=button Cancel /span span class=right /span /a /div h3 Move Video(s) /h3 p Move selected video(s) to another folder. (1 videos selected) /p /div div class=modal_contents form onsubmit=if($F('destination_folder') lt; 2){return false;} method=post id=modal_form action=/filings/move fieldset label class=select_field for=destination_folderMove to an existing folder:/label select name=destination_folder id=destination_folder option value=Choose a folder.../option option value= /option option value=706025My First Folder 02/05/10/option /select input type=hidden value=1 name=filings[576839] id=filings[576839] input type=hidden value=706027 name=current_folder_id id=current_folder_id div class=submit button value= type=submit name=submit_button class=tool tool_button move_button span class=left /span span class=button Move /span span class=right /span /button a onclick=MOBX.Folders.restoreStateAndCloseWindows(); return false; href=# class=blockCancel and close this window./a /div /fieldset /form div id=errors/div form onsubmit=new Ajax.Request('/folders', {asynchronous:true, evalScripts:true, parameters:Form.serialize(this)}); return false; method=post id=create_folder action=/folders div class=itemlabel for=folder_name class= text_fieldOr, move to a new folder:/labelinput type=text size=30 name=folder[name] id=folder_name class=text_field/div div class=submit button value= type=submit name=submit_button class=tool tool_button create_and_move_button span class=left /span span class=button Create and Move /span span class=right /span /button a onclick=MOBX.Folders.restoreStateAndCloseWindows(); return false; href=# class=blockCancel and close this window./a /div input type=hidden value=1 name=filings[576839] id=filings[576839] /form/div /div/div I'm trying to enter a value to create a new folder to move the video to and then clicking the submit button to execute. In Safariwatir, the value is entered into the text filed but the submit button is simply highlighted in yellow and not followed. When using firewatir I cannot get any data entered into the text field due to the issue explained above in this thread. Does this help clarify this issue? Thanks On Feb 5, 11:33 pm, Yuping Zhong littlezhong...@gmail.com wrote: Hi, Can you give more info that how to go to the folder page? Right now,I don't know how to flow to that page. Thanks! -Zhong On Fri, Feb 5, 2010 at 11:35 PM,QAguyqablogm...@gmail.com wrote: Yes.www.motionbox.com Modals are on the folder pages. On Feb 5, 3:08 am, Angrez Singh ang...@gmail.com wrote: Is it something that we can see online? I mean is there a website on which you are testing? On Fri, Feb 5, 2010 at 3:30 AM,QAguyqablogm...@gmail.com wrote: The first on didn't work. I tried the second one you provided: browser.div(:for, folder_name).text_field(:id,folder_name).set(Watir test folder) and I got this error: JsshSocket::JSSyntaxError in 'Check folder page menu options and modals should allow the user move
Re: [wtr-general] My blog about Watir and RSpec
Jarmo - I'm still reading but this is good stuff. +1 on the font size tho :) Alan On Tue, Feb 16, 2010 at 9:34 AM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Thu, Feb 11, 2010 at 10:34 PM, Jarmo Pertman jarm...@gmail.com wrote: i'm waiting for any feedback I am reading your posts, and my first feedback would be to slightly increase font size on your blog. :) Željko -- 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.comwatir-general%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -- 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: watir suite hanging issue
I had a problem like this before and the workaround I used was to kick off a thread that checked something in the browser every so often to make sure that it wan't stuck. In my script I did something like this: def check_for_freeze(browser) # Kick off a new thread and keep checking the url Thread.new do while sleep(30) first_url = browser.url sleep(300) second_url = browser.url if (first_url == second_url) puts The browser got stuck and had to be refreshed. # you can put this in your test log instead if you want. browser.refresh end end Of course this is a workaround so you have to be careful if you do something like this. For instance in this example if the URLs match by coincidence it will refresh the browser even though nothing is wrong. You could work around this by adding more checks and only refreshing if it's the same five times in a row or something like that. Brian -- 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] Issue with the wrapper built around the .text method in Firewatir
Hi all, We had tried to build a wrapper around the .text method in FireWatir as below:- #obj is the object we want to fetch the text of htmlIp= obj.html htmlbrs=htmlIp.split(br) textIp= obj.text finalstr= for i in 0..htmlbrs.length-1 #cleaning of tags tagCounter=0 htmlPart=(htmlbrs[i]).split('') htmlPart2='' for j in 0..htmlPart.length-1 if htmlPart[j] == tagCounter=tagCounter+1 elsif htmlPart[j] == tagCounter=tagCounter-1 elsif tagCounter == 0 htmlPart2=htmlPart2+htmlPart[j] end end #checking for the text if textIp.include? htmlPart2 then if i==0 then finalstr=htmlPart2 else finalstr=finalstr+\n+ htmlPart2 end end end The final text is returned in the variable - finalstr. This successfully cleans up any extra tags that are returned in the text. This fails when the extra characters in the returned text are not tags rather they are characters like amp, nbsp etc. Kindly advise as to how to incorporate the cleaning of the text with respect to the same. -- 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
Re: [wtr-general] Re: watir suite hanging issue
Hey Brian, Thanks a lot, i'll try out the solution u provided and get back to you soon regards, Mahesh On Wed, Feb 17, 2010 at 3:18 AM, Brian Tomlin tendonstren...@gmail.comwrote: I had a problem like this before and the workaround I used was to kick off a thread that checked something in the browser every so often to make sure that it wan't stuck. In my script I did something like this: def check_for_freeze(browser) # Kick off a new thread and keep checking the url Thread.new do while sleep(30) first_url = browser.url sleep(300) second_url = browser.url if (first_url == second_url) puts The browser got stuck and had to be refreshed. # you can put this in your test log instead if you want. browser.refresh end end Of course this is a workaround so you have to be careful if you do something like this. For instance in this example if the URLs match by coincidence it will refresh the browser even though nothing is wrong. You could work around this by adding more checks and only refreshing if it's the same five times in a row or something like that. Brian -- 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.comwatir-general%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -- 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
Re: [wtr-general] Re: watir suite hanging issue
Thanks Reed, I tried *browser.refresh* in places usually my script hangs. Am waiting for my suite to run completely, I'll verify the result and if still same issue, then I'll try out the solution provided by Brian If both doesn't work out to me, then ill log a bug regards, Mahesh On Tue, Feb 16, 2010 at 9:56 PM, AR reed.a...@gmail.com wrote: Log a bug and have development/operations fix the hang :D? I haven't run into this myself, but it sounds like one resolution could be checking to see if an element on the page that should be loading exists yet, and if not, after a certain time calling a $browser.refresh. On Feb 16, 4:40 am, Mahesh Maiya mahesh.ma...@gmail.com wrote: Hi All, This is Mahesh. Am new to this community and this is my first post. please share if you have any idea for the below problem I'm working with a web applicatio that sometimes hangs in the middle of a test. Is there a way to automate this with Watir? (way to proceed by refreshing the browser) I do something like this: * Start the test suite * Monitor browser activity. If there is no response/activity for a certain amount of time, refresh the browser and try to continue. * Finish the test. Regards, Mahesh -- 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.comwatir-general%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -- 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