Re: [wtr-general] Re: Error when going back to Watir 1.6.2 from Watir 1.6.5

2010-01-13 Thread Krishna saradka
I'm not sure about the problem in watir for installation though but one
check you may perform is to go to the location where watir is installed and
check whether ie.rb is present or not. You may able to locate it somewhere
like \\lib\ruby\gems\1.8\gems\watir-1.6.2\lib\watir\ie.rb

If you are not able to find it then their might be a possibility that the
re-installation might have failed somewhere. May be a fresh installation
might help in this case.


Thanks  regards,
KK

On Wed, Jan 13, 2010 at 7:16 PM, juanmaflyer juanmafl...@gmail.com wrote:

 In fact the complete error is 'no such file to load -- watir/ie
 (LoadError)

 On Jan 13, 10:39 am, juanmaflyer juanmafl...@gmail.com wrote:
  Hi! I will be short.
 
  I have been testing long time with watir 1.6.2. Yesterday I decided to
  switch to Watir 1.6.5 and some scripts didn't work as expected...I
  don't blame the problem on Watir, but just in case, i decided to
  uninstall watir 1.6.5 and install 1.6.2 again. Perfect!
 
  After that, when running a very simple script the following error
  appeared:
 
  watir/ie (LoadError)
 
  The script i'm running is the following:
 
  1.  require 'watir'
  2.  ie2 = IE.new
 
  The error raise on line 2.

 --
 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

-- 
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: No Matching Window Exception.

2010-01-12 Thread Krishna saradka
Try printing the URL of the loaded page, just to confirm that the page still
has the same URL and is not changed on page load. You may print the URL soon
after the page load to confirm this.

urlNew  = $ie.url
puts  URL confirmation : +urlNew
$ie = Watir::IE.attach(:url, urlNew)


add them before the code
$ie = Watir::IE.attach(:url, test_site)

Thanks  Regards,
KK

On Tue, Jan 12, 2010 at 3:50 PM, Chandu80 chandu.she...@gmail.com wrote:

 Hi,
 I have checked and found the browser url as http://www.google.com.

 Regards
 Chandrika

 On Jan 11, 7:49 pm, Željko Filipin zeljko.fili...@wa-research.ch
 wrote:
  Did you check that browser url is google.com? When I navigate to
 google.com,
  it actually opens google.hr (because I am in Croatia)?
 
  Ž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

-- 
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: Fwd: Regarding Getting Page Text in Watir and FireWatir

2010-01-05 Thread Krishna saradka
Angrez,

Thanks for the clarification. The insight was really helpful.

Thanks  regards,
KK

On Thu, Dec 31, 2009 at 2:50 PM, Angrez Singh ang...@gmail.com wrote:

 For benefit of others I am adding watir-general group as well.
 http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node3-textContent

 If you see the standards for getting the text of body element i.e. using
 the function textContent, text should be returned by combining the text of
 all the elements that are child node of the element for which you want the
 text. Now for br element the text is empty string so it doesn't introduce
 a line break.
 Its not a bug in Firefox its as per the standards.
 In IE, we use innerText function which is not per the standard and it does
 introduce a line break when you get text.

 Issue is not which browser is following the standards and which is better,
 issue is both of them see's the things differently and return different
 text.

 - Angrez


 On Thu, Dec 31, 2009 at 2:20 PM, Krishna saradka 
 krishna.sara...@gmail.com wrote:

 Dear Angrez,

 I'm little confused. Using a ,br. tag in html should break the line and
 move the follwoing text to the next line. Currently as per the original
 posted question on this thread, she is pointing out that the output of
 firewatir in this case is different. Which is instead of the line break it
 is introducing just a space. Where as while using IE [watir instead of
 firewatir] she is getting the desired result.

 While going over the below link, I understand that FF had a bug in it and
 it was not treating the br tag appropriately if the following text also
 continues in the same line in html code. This is observed while using
 textContext.

 Thanks  Regards,
 KK

 On Thu, Dec 31, 2009 at 12:55 PM, Angrez Singh ang...@gmail.com wrote:

 Actually for your HTML code the result returned by Firewatir is as per
 the W3C standard. Check this link:
 https://bugzilla.mozilla.org/show_bug.cgi?id=316063

 I am working on how we can actually make the results similar.
 - Angrez


 On Thu, Dec 31, 2009 at 11:26 AM, Pallavi Sharma 
 write2pall...@gmail.com wrote:

 Thanks Angrez.

 Rgds
 Pallavi.

   On Thu, Dec 31, 2009 at 11:18 AM, Angrez Singh ang...@gmail.comwrote:

  I'll look into this issue.
 - Angrez


 On Thu, Dec 31, 2009 at 10:40 AM, Krishna saradka 
 krishna.sara...@gmail.com wrote:

 br by virtue should break the line and what you observe while
 running in ie is correct. May be that firewatir is not treating it that 
 way.
 [I have not explored firewatir to that extent to confirm this]

 If you can tell us what exactly you are intend to do after getting the
 text then we can think of some workaround until we get clarity on the 
 above.

 If you are comparing the string to arrive at some decision then for
 the time being try making it compare depending on whether it is ie or ff.
 Though this is not a clean way of doing the things.

 Thanks  regards,
 KK

   On Thu, Dec 31, 2009 at 10:11 AM, Pallavi Sharma 
 write2pall...@gmail.com wrote:

 Hi Angrez

 Could you please give some time and help with this..

 Regards

 Pallavi.


 -- Forwarded message --
 From: Pallavi Sharma write2pall...@gmail.com
 Date: Wed, Dec 30, 2009 at 9:21 AM
 Subject: Re: [wtr-general] Re: Fwd: Regarding Getting Page Text in
 Watir and FireWatir
 To: watir-general@googlegroups.com


 Hi

 My code looks like this:

 Say the input is:

 h1 hello br bye br /h1

 Now if you do from watir saying

 puts ie.text

 it will print

 hello
 bye

 so text is seperated by new line

 but with firewatir

 ff.text

 output is:

 hello bye

 separated by space.

 So thats my problem. As the delimiter used by watir and firewatir is
 not same, i cannot simply run my same watir scripts in fire watir.

 Any solution or feedback on it...

 Regards
 Pallavi.


 On Wed, Dec 30, 2009 at 4:52 AM, George george.sand...@gmail.comwrote:

 Hello,

 What does your code look like?



 On Dec 27, 8:15 pm, Pallavi Sharma write2pall...@gmail.com wrote:
  Hi
 
  Has anyone here answer for this please.
 
  Regards
  Pallavi.
 
 
 
  -- Forwarded message --
  From: Pallavi Sharma write2pall...@gmail.com
  Date: Tue, Dec 22, 2009 at 10:23 AM
  Subject: Regarding Getting Page Text in Watir and FireWatir
  To: watir-general@googlegroups.com
 
  Hello
 
  If i try to get the page text for watir and firewatir a peculiar
 problem
  arises;
 
  for watir if there is br tag then with the test a new line
 appers
 
  but for Firewatir this doesn't happen.
 
  I am not able to run directly my test cases made in watir into
 firewatir due
  to this behaviour as the split fails on the output of this method
 .
 
  Is there is something we could do about it/ or any other way??
 
  Regards
  Pallavi.

  --
 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

Re: [wtr-general] Re: Fwd: Regarding Getting Page Text in Watir and FireWatir

2009-12-30 Thread Krishna saradka
br by virtue should break the line and what you observe while running in
ie is correct. May be that firewatir is not treating it that way. [I have
not explored firewatir to that extent to confirm this]

If you can tell us what exactly you are intend to do after getting the text
then we can think of some workaround until we get clarity on the above.

If you are comparing the string to arrive at some decision then for the time
being try making it compare depending on whether it is ie or ff. Though this
is not a clean way of doing the things.

Thanks  regards,
KK

On Thu, Dec 31, 2009 at 10:11 AM, Pallavi Sharma write2pall...@gmail.comwrote:

 Hi Angrez

 Could you please give some time and help with this..

 Regards

 Pallavi.


 -- Forwarded message --
 From: Pallavi Sharma write2pall...@gmail.com
 Date: Wed, Dec 30, 2009 at 9:21 AM
 Subject: Re: [wtr-general] Re: Fwd: Regarding Getting Page Text in Watir
 and FireWatir
 To: watir-general@googlegroups.com


 Hi

 My code looks like this:

 Say the input is:

 h1 hello br bye br /h1

 Now if you do from watir saying

 puts ie.text

 it will print

 hello
 bye

 so text is seperated by new line

 but with firewatir

 ff.text

 output is:

 hello bye

 separated by space.

 So thats my problem. As the delimiter used by watir and firewatir is not
 same, i cannot simply run my same watir scripts in fire watir.

 Any solution or feedback on it...

 Regards
 Pallavi.


 On Wed, Dec 30, 2009 at 4:52 AM, George george.sand...@gmail.com wrote:

 Hello,

 What does your code look like?



 On Dec 27, 8:15 pm, Pallavi Sharma write2pall...@gmail.com wrote:
  Hi
 
  Has anyone here answer for this please.
 
  Regards
  Pallavi.
 
 
 
  -- Forwarded message --
  From: Pallavi Sharma write2pall...@gmail.com
  Date: Tue, Dec 22, 2009 at 10:23 AM
  Subject: Regarding Getting Page Text in Watir and FireWatir
  To: watir-general@googlegroups.com
 
  Hello
 
  If i try to get the page text for watir and firewatir a peculiar problem
  arises;
 
  for watir if there is br tag then with the test a new line appers
 
  but for Firewatir this doesn't happen.
 
  I am not able to run directly my test cases made in watir into firewatir
 due
  to this behaviour as the split fails on the output of this method .
 
  Is there is something we could do about it/ or any other way??
 
  Regards
  Pallavi.

  --
 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



   --
 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


-- 
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: pls help; Enter data in textbox

2009-06-03 Thread Krishna saradka
Kiran,

I just tried the same and it worked perfectly fine from here. Attached the
html  .rb file for ref.
I suspect there are some more parameters invovled in this case, which might
be impacting the script when you run from your end. Can check out more if
you can share the entire html file.

Thanks  regards,
KK

On Wed, Jun 3, 2009 at 12:04 PM, KiranD kir...@sikkasoft.com wrote:

  Hi Guys



 I am trying to enter some text in the textbox through Watir ,

 but it is not able to enter text directly in the textbox until I click on
 web page area.



 When I click on any where on the page area then it shows description string
 in Textbox.

 I used set focus method but still it has a problem.



 I have to data driven testing.  help me to resolve this

 Here is the piece of code that I used.





 ie.bring_to_front()

 ie.text_field(:id,short_desc).focus()

 ie.text_field(:id,short_desc).set Description





 td nowrap colspan=2

 span id=bugid_label class=lblDescription:nbsp;/span

 span id=bugid class=static/span

 nbsp;nbsp;nbsp;

 span id=static_short_desc class=static style=width:500px;
 display:none;/span

 input name=short_desc type=text id=short_desc
 class=txt size=100 maxlength=200 /

 nbsp;nbsp;nbsp;

 span id=short_desc_err class=errnbsp;/span









 Best regards,

 KiranD







 


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---

Title: KiranD



Description:






			

Kirand.rb
Description: Binary data