Re: [wtr-general] Re: Watir-Webdriver slow execution speed in FF 36

2016-10-24 Thread Raja gopalan
Please use WATIR classic while you automate IE browser,only when you for chrome and Firefox, use web driver. On Oct 25, 2016 12:32 AM, "Pratik G V" wrote: > Yeah, I was using Watir-classic for all the testcases to execute and to > handle Windows Model dialog I had to switch to Watir-WebDriver 0.

[wtr-general] Re: how to install prev versions of watir

2016-11-15 Thread Raja gopalan
Hi, watir-webdriver is not deprecated, watir-classic is deprecated. If you install watir, it automatically install watir-webdriver. If you use 'gem list watir' it doesn't display watir-webdriver this time. But it's default anyway. But if you still want to go for old version, then you can do b

[wtr-general] Re: how to install prev versions of watir

2016-11-15 Thread Raja gopalan
not > supported. > > I just updated and pushed the fix to 6.0.2. You should be able to just > bundle update now. > > Titus > > On Tuesday, November 15, 2016 at 3:33:27 PM UTC, Raja gopalan wrote: >> >> Hi, watir-webdriver is not deprecated, watir-classic is d

[wtr-general] Re: Watir 6.0 Released

2016-11-15 Thread Raja gopalan
Changing from require 'watir-webdriver' to require 'watir' is not really a change. Because earlier watir was a meta gem, If you require 'watir' and if you just pass a parameter of chrome or firefox it automatically trigger the webdriver rather than watir-classic, the real change you have done he

[wtr-general] Re: how to install prev versions of watir

2016-11-15 Thread Raja gopalan
ub.com/watir/watir/issues/486 > > And sorry, I forgot to post about Watir 6.0 in this channel last week. > Hopefully my new post about it clarifies things. > > Thanks! > Titus > > On Tuesday, November 15, 2016 at 3:52:18 PM UTC, Raja gopalan wrote: >> >> What'

[wtr-general] Re: Watir 6.0 Released

2016-11-16 Thread Raja gopalan
Hi I am not clear what you are saying. I will delete when_present but instead of that, I need to use wait_until,right? Something like b.text_field(:id,'something').when_present.set 'Rajagopalan' now b.text_field(:id,'something').wait_until.set 'Rajagopalan' On Tuesday, November 15, 2016 at 1

[wtr-general] Re: Watir 6.0 Released

2016-11-16 Thread Raja gopalan
ld(id: 'something').set 'foo'` > > But you can do things like this now as well: > `element1.wait_until(&:enabled?).set 'bar'` > > > Titus > > On Wednesday, November 16, 2016 at 9:53:08 AM UTC, Raja gopalan wrote: >> >> Hi I am not

[wtr-general] Error while I try to initiate chrome using WATIR 6.0.2

2016-11-24 Thread Raja gopalan
hi, I have the given below error C:/Ruby23/lib/ruby/2.3.0/net/http.rb:882:in `rescue in block in connect': Failed to open TCP connection to 127.0.0.1:9515 (No connection could be made because the target machine actively refused it. - connect(2) for "127.0.0.1" port 9515) (Errno::ECONNREFUSED)

[wtr-general] Re: Error while I try to initiate chrome using WATIR 6.0.2

2016-11-24 Thread Raja gopalan
5 > If that doesn't work, please provide the code you are using. > > > On Thursday, November 24, 2016 at 11:39:07 AM UTC-6, Raja gopalan wrote: >> >> hi, I have the given below error >> >> C:/Ruby23/lib/ruby/2.3.0/net/http.rb:882:in `rescue in block in conn

Re: [wtr-general] browser closing on error

2016-11-24 Thread Raja gopalan
Hi Titus, Yeah it's works fine, I checked it now. But I want to understand why this version of watir closes the browser while the previous doesn't? And why do need to include such long code to not to close the browser while we have done nothing in our previous version? On Thursday, November 24

[wtr-general] Re: Error while I try to initiate chrome using WATIR 6.0.2

2016-11-24 Thread Raja gopalan
M UTC+5:30, Titus Fortner wrote: > > That is more common than you think. :) Glad it's working for you now. > > Titus > > On Thursday, November 24, 2016 at 11:50:07 AM UTC-6, Raja gopalan wrote: >> >> Oh sorry, I installed the new version of ruby and watir, So I forg

[wtr-general] Re: Error while I try to initiate chrome using WATIR 6.0.2

2016-11-24 Thread Raja gopalan
r 25, 2016 at 12:04:16 AM UTC+5:30, Titus Fortner wrote: > > I'm not sure I understand. > Are you having an issue with calling browser.close or after your spec or > rb file has completed executing? > > > On Thursday, November 24, 2016 at 12:24:50 PM UTC-6, Raja gopalan wr

[wtr-general] Re: Error while I try to initiate chrome using WATIR 6.0.2

2016-11-24 Thread Raja gopalan
es, but you expect the terminal it was running in to also > close and it is not? > > > On Thursday, November 24, 2016 at 12:54:06 PM UTC-6, Raja gopalan wrote: >> >> I am using scite editor to execute the program(I use RubyMind if it's a >> project), as soon as

Re: [wtr-general] browser closing on error

2016-11-24 Thread Raja gopalan
Not only that, program is not terminating for me, It opens the browser and does the work and closes the browser,but program is not terminating. I have to go and terminate the terminal manually. But this doesn't help in Project if this works this way. On Friday, November 25, 2016 at 6:18:47 AM

Re: [wtr-general] browser closing on error

2016-11-24 Thread Raja gopalan
Hi Titus, I was sorry about the last reply, I noticed that it's closing after long time. It's fine. Thanks. On Friday, November 25, 2016 at 6:18:47 AM UTC+5:30, Titus Fortner wrote: > > Oh, this could be due to a change we made in selenium a few months back. > If you pass in detach: true to :ch

Re: [wtr-general] browser closing on error

2016-11-24 Thread Raja gopalan
Hi Titus, If it's internet explorer, it's not closing the browser, if it's chrome, then it's not closing the browser. Can you make this as a default one as it's in Internet Explorer? On Friday, November 25, 2016 at 6:18:47 AM UTC+5:30, Titus Fortner wrote: > > Oh, this could be due to a change

[wtr-general] Couldn't start the mozilla using WATIR 6.0.2

2016-11-25 Thread Raja gopalan
I have written the following code > > > require 'watir' > b=Watir::Browser.new :firefox > > b.goto 'www.google.com' It opens the firefox but it's not entering url there, it's waiting for some time and it's throws the following error > > C:/Ruby23/lib/ruby/gems/2.3.0/gems/selenium-webdriver-3.0

[wtr-general] Re: Couldn't start the mozilla using WATIR 6.0.2

2016-11-28 Thread Raja gopalan
geckodriver On Monday, November 28, 2016 at 3:22:38 PM UTC+5:30, gary wrote: > > is it the latest geckodriver and the latest v. of firefox? > > On Friday, 25 November 2016 16:28:43 UTC, Raja gopalan wrote: >> >> I have written the following code >>> &g

[wtr-general] Re: Couldn't start the mozilla using WATIR 6.0.2

2016-11-28 Thread Raja gopalan
gem to have it automatically > manage your drivers for you: > https://github.com/titusfortner/webdrivers#usage > > > > On Monday, November 28, 2016 at 2:32:10 AM UTC-8, Raja gopalan wrote: >> >> geckodriver >> >> On Monday, November 28, 2016 at 3:22:38 PM U

[wtr-general] I want to disable this implicit 'when_present'

2016-12-05 Thread Raja gopalan
How do I do that? I want to disable this implicit when_present, how do I do that? It's waiting in some places for a long time which I could check in my log so easily. -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegr

[wtr-general] Re: I want to disable this implicit 'when_present'

2016-12-05 Thread Raja gopalan
Yes, it works, thanks. On Monday, December 5, 2016 at 7:24:38 PM UTC+5:30, Lucas Tierney wrote: > > You should be able to disable the when_present waiting before actions by > setting Watir.relaxed_locate = false > > On Monday, December 5, 2016 at 7:21:35 AM UTC-6, Raja gopalan w

Re: [wtr-general] How to open the new tab in chrome using ruby watir in rubymine

2016-12-13 Thread Raja gopalan
It's opening new window but it's loading wrong url in the second window, for an example, I have written the following code require 'watir' > b=Watir::Browser.new :chrome > b.goto 'www.google.com' > b.execute_script('window.open("www.yahoo.com")') > > gets but it's loading the given below url,

Re: [wtr-general] How to open the new tab in chrome using ruby watir in rubymine

2016-12-13 Thread Raja gopalan
Lucas, Thank you, it works fine. On Tuesday, December 13, 2016 at 8:47:25 PM UTC+5:30, Lucas Tierney wrote: > > You need to have 'http://' in front of 'www.yahoo.com' (look at how Titus > did it) > > On Tuesday, December 13, 2016 at 8:12:40 AM UTC-6, Raja go

[wtr-general] invalid element state: Element is not currently interactable and may not be manipulated(classic works fine, but webdriver is throwing this error)

2016-12-16 Thread Raja gopalan
I am running the same code in Watir-classic and WATIR 6.0.2 WATIR-CLASSIC runs without any problem, but WATIR 6.0.2 throwing this error > > [12:39:18] [ERROR] : invalid element state: Element is not currently > interactable and may not be manipulated > (Session info: chrome=55.0.2883.87) > (

[wtr-general] Re: invalid element state: Element is not currently interactable and may not be manipulated(classic works fine, but webdriver is throwing this error)

2016-12-17 Thread Raja gopalan
aving a reproducible test case it would be > difficult to diagnose further, but you are likely trying to do something > differently than how a user to the site would be doing it. > > Titus > > On Saturday, December 17, 2016 at 1:57:36 AM UTC-6, Raja gopalan wrote: >> >&

[wtr-general] Re: invalid element state: Element is not currently interactable and may not be manipulated(classic works fine, but webdriver is throwing this error)

2016-12-17 Thread Raja gopalan
ut needing to set a debug point. > > Titus > > On Saturday, December 17, 2016 at 2:44:24 PM UTC-6, Raja gopalan wrote: >> >> Yes, I know classic is only for IE, But when I used watir-webdriverfor >> both IE and Chrome, both are throwing this same error. It's a l

Re: [wtr-general] Re: invalid element state: Element is not currently interactable and may not be manipulated(classic works fine, but webdriver is throwing this error)

2016-12-17 Thread Raja gopalan
elp > you any more. > > On Sat, Dec 17, 2016 at 3:02 PM, Raja gopalan > wrote: > >> Yes, I have tried with watir-scroll as well, but it also throws the >> error. >> >> >> On Sunday, December 18, 2016 at 2:30:31 AM UTC+5:30, Titus Fortner wrote: >&g

Re: [wtr-general] Re: invalid element state: Element is not currently interactable and may not be manipulated(classic works fine, but webdriver is throwing this error)

2016-12-17 Thread Raja gopalan
de a link, create one using > jsfiddle.net > > On Sat, Dec 17, 2016 at 3:18 PM, Raja gopalan > wrote: > >> Okay, what do you want? Coding part of that text_field? >> >> On Sunday, December 18, 2016 at 2:35:51 AM UTC+5:30, Titus Fortner wrote: >>> >>>

[wtr-general] Is there any way I can adjust the predefined waiting time in WATIR 6.1.0

2017-02-03 Thread Raja gopalan
This code b.button(:value,'Next').click > has the implicit waiting time Is there any way I can increase the waiting time? where do I have to set it? -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://

Re: [wtr-general] Is there any way I can adjust the predefined waiting time in WATIR 6.1.0

2017-02-03 Thread Raja gopalan
. > If you want to increase it for a specific element interaction: > > `b.button.wait_until(timeout: 45, &:present?).click` > > On Fri, Feb 3, 2017 at 11:22 AM, Raja gopalan > wrote: > >> This code >> >> b.button(:value,'Next').click >>&

[wtr-general] Re: angular login

2017-02-03 Thread Raja gopalan
If you use browser=Selenium::WebDriver.new :chrome Then you need to use browser. find_element(:id,'email').send_keys "('em...@email.com')" If you use browser=Watir::Browser.new browser.text_field(:id,'email').set "('em...@email.com')" On Friday, February 3, 2017 at 11:49:53 PM UTC+5:30, c

[wtr-general] Placing the value inside the text field loads the entire page, So Is there any function which will wait for the page load?

2017-02-11 Thread Raja gopalan
There are certain kind of a text_field which I am automating, when I place the value there like b.text_field(:id,'something').set 'hi' It refresh the entire page or it reloads the page, but the above code only wait until element present and place the value inside the text field but it doesn't

[wtr-general] Re: Placing the value inside the text field loads the entire page, So Is there any function which will wait for the page load?

2017-02-13 Thread Raja gopalan
; > > On Saturday, February 11, 2017 at 10:21:56 AM UTC-5, Raja gopalan wrote: >> >> There are certain kind of a text_field which I am automating, when I >> place the value there like >> >> b.text_field(:id,'something').set 'hi' >> >&

Re: [wtr-general] Placing the value inside the text field loads the entire page, So Is there any function which will wait for the page load?

2017-02-13 Thread Raja gopalan
eld you can use wait_until_present or .present?. > > Joe > > On Feb 11, 2017 10:21 AM, "Raja gopalan" > wrote: > > There are certain kind of a text_field which I am automating, when I place > the value there like > > b.text_field(:id,'something').set 

Re: [wtr-general] Placing the value inside the text field loads the entire page, So Is there any function which will wait for the page load?

2017-02-13 Thread Raja gopalan
ter the field is set but if you >> need to wait for the text field you can use wait_until_present or .present?. >> >> Joe >> >> >> On Feb 11, 2017 10:21 AM, "Raja gopalan" > > wrote: >> >> There are certain kind of a text_field which I am automating

Re: [wtr-general] Placing the value inside the text field loads the entire page, So Is there any function which will wait for the page load?

2017-02-13 Thread Raja gopalan
> > > > On Monday, February 13, 2017 at 12:01:55 PM UTC-6, Raja gopalan wrote: >> >> My problem is after setting the value. Page is getting refreshed after >> setting the value. >> >> On Monday, February 13, 2017 at 9:09:18 AM UTC+5:30, Joe Fl wrote: >&

Re: [wtr-general] Placing the value inside the text field loads the entire page, So Is there any function which will wait for the page load?

2017-02-13 Thread Raja gopalan
t a user would do > and how Watir is not doing it that way. > > > > On Monday, February 13, 2017 at 12:01:55 PM UTC-6, Raja gopalan wrote: >> >> My problem is after setting the value. Page is getting refreshed after >> setting the value. >> >> On Monda

Re: [wtr-general] Placing the value inside the text field loads the entire page, So Is there any function which will wait for the page load?

2017-02-15 Thread Raja gopalan
s maybe there is a >> bug. Perhaps bad JS validation or field validation. >> You can always put a static sleep as a work-around. Not elegant. >> Change the sets to send keys and see if the behaviour alters. >> >> >> On Monday, February 13, 2017 at 12:10:45 PM UTC

Re: [wtr-general] Placing the value inside the text field loads the entire page, So Is there any function which will wait for the page load?

2017-02-17 Thread Raja gopalan
there is a >> bug. Perhaps bad JS validation or field validation. >> You can always put a static sleep as a work-around. Not elegant. >> Change the sets to send keys and see if the behaviour alters. >> >> >> On Monday, February 13, 2017 at 12:10:45 PM UTC-6, Raja

Re: [wtr-general] Placing the value inside the text field loads the entire page, So Is there any function which will wait for the page load?

2017-02-18 Thread Raja gopalan
ps bad JS validation or field validation. > You can always put a static sleep as a work-around. Not elegant. > Change the sets to send keys and see if the behaviour alters. > > > On Monday, February 13, 2017 at 12:10:45 PM UTC-6, Raja gopalan wrote: >> >> Hi, I have repli

Re: [wtr-general] Placing the value inside the text field loads the entire page, So Is there any function which will wait for the page load?

2017-02-18 Thread Raja gopalan
gt;> browser.text_field.send_keys "hello", [:control, "a"], :backspace >> >> See: >> https://watirmelon.blog/2011/07/19/sending-special-keys-to-watir-webdriver/ >> >> http://www.rubydoc.info/github/watir/watir-classic/Watir%2FElement%3A

Re: [wtr-general] Placing the value inside the text field loads the entire page, So Is there any function which will wait for the page load?

2017-02-18 Thread Raja gopalan
gt; >> browser.text_field.send_keys "hello", [:control, "a"], :backspace >> >> See: >> https://watirmelon.blog/2011/07/19/sending-special-keys-to-watir-webdriver/ >> >> http://www.rubydoc.info/github/watir/watir-classic/Watir%2FElement%3Asend_k

Re: [wtr-general] Placing the value inside the text field loads the entire page, So Is there any function which will wait for the page load?

2017-02-18 Thread Raja gopalan
bydoc.info/github/watir/watir-classic/Watir%2FElement%3Asend_keys > > > > On Friday, February 17, 2017 at 5:36:11 AM UTC-6, Raja gopalan wrote: >> >> Hi Titus, >> >> Sorry for late reply! Your code which has been given in Stackoverflow is >> a good catch b

Re: [wtr-general] Placing the value inside the text field loads the entire page, So Is there any function which will wait for the page load?

2017-02-18 Thread Raja gopalan
keys stream. > > browser.text_field.send_keys "hello", [:control, "a"], :backspace > > See: > https://watirmelon.blog/2011/07/19/sending-special-keys-to-watir-webdriver/ > > http://www.rubydoc.info/github/watir/watir-classic/Watir%2FElement%3Asend_keys &g

[wtr-general] Is it possible to automate Firefox browser lower than 45 version using WATIR 6.2?

2017-03-05 Thread Raja gopalan
I am trying to automate the firefox browser which is lower than 45 that is 38, but it's throwing this error C:/Ruby23/lib/ruby/gems/2.3.0/gems/selenium-webdriver-3.2.1/lib/selenium/webdriver/remote/response.rb:69:in `assert_ok': Missing 'marionetteProtocol' field in handshake (Selenium::WebDri

Re: [wtr-general] Is it possible to automate Firefox browser lower than 45 version using WATIR 6.2?

2017-03-06 Thread Raja gopalan
: false) b=Watir::Browser.new :firefox, desired_capabilities: caps On Monday, 6 March 2017 13:08:14 UTC+5:30, Titus Fortner wrote: > > You need to pass in a Capabilities object with marionette: false for > Firefox less than 48. > > On Mar 6, 2017 1:19 AM, "Raja gopalan&

Re: [wtr-general] Is it possible to automate Firefox browser lower than 45 version using WATIR 6.2?

2017-03-06 Thread Raja gopalan
tion for us to be able to diagnose your > issue. What code are you using on what html? Often it is useful to check if > your code works with chrome. > > > On Mar 6, 2017 2:33 AM, "Raja gopalan" > wrote: > > Yeah it works now, the code I have written below, but g

[wtr-general] I find a bug in automating firefox with geckodriver

2017-03-11 Thread Raja gopalan
When we click a button to navigate the next page, it doesn't wait for next page to appear, it moves to execute the next command while page still loads but when we use ' legacy Firefox driver' it waits for next page to complete load. Selenium also promises that it locks other operation if button

Re: [wtr-general] I find a bug in automating firefox with geckodriver

2017-03-11 Thread Raja gopalan
Ok thank you! I was not aware that it's a known issue. On Mar 12, 2017 12:33 AM, "Titus Fortner" wrote: > This is a known issue with geckodriver. The w3c spec calls for being able > to specify one of three levels. The default is supposed to wait for > document ready status like other drivers, bu

[wtr-general] Error while Selecting select_list by Value

2017-03-15 Thread Raja gopalan
I have written the code to select the select list b.select_list(:id,'PolicyTypeANDL').select_value '225' It's working sometime and it's throwing error some time, Error is, Uncaught exception: [JavaScript Error: "can't access dead object" {file: "file:///C:/Users/RAJAGO~1.M/AppData/Local/

Re: [wtr-general] Re: Error while Selecting select_list by Value

2017-03-15 Thread Raja gopalan
If I run 10 times this problem happens for once. On Mar 15, 2017 11:15 PM, "Lucas Tierney" wrote: > I don't suppose this select is in an iframe? The 'dead object' issue has > been discussed lately but it was due to frame contexts. > > On Wednesday, Mar

Re: [wtr-general] Re: Error while Selecting select_list by Value

2017-03-15 Thread Raja gopalan
No, this error happens once out of ten times may be On Mar 15, 2017 10:13 PM, "Arik Jones" wrote: > Are you loading any firefox plugins that change the state of the DOM? > > On Wednesday, March 15, 2017 at 3:24:23 AM UTC-4, Raja gopalan wrote: >> >> I have writte

Re: [wtr-general] Error while Selecting select_list by Value

2017-03-15 Thread Raja gopalan
I am using legacy Firefox driver Because as I told you earlier Geckodriver is not choosing the select list option To the above problem the option is successfully selected but after the selection this error was thrown. On Mar 15, 2017 5:58 PM, "Titus Fortner" wrote: > What version of Firefox and

Re: [wtr-general] Re: Error while Selecting select_list by Value

2017-03-17 Thread Raja gopalan
attached to a parent object which has > refreshed. ( a div, a table, an element, who knows) > This is based on the assumption: > b.select_list(:id,'PolicyTypeANDL').select_value > '225' > where b is just the gross browser object. > > > > On Wedn

Re: [wtr-general] Re: Error while Selecting select_list by Value

2017-03-17 Thread Raja gopalan
No but it refreshes the page . On Mar 17, 2017 8:08 PM, "Lucas Tierney" wrote: > Is the select causing a page navigation after selecting the option? > > On Friday, March 17, 2017 at 8:44:35 AM UTC-5, Raja gopalan wrote: >> >> Actually the option is selected succ

Re: [wtr-general] Re: Error while Selecting select_list by Value

2017-03-17 Thread Raja gopalan
navigation after selecting the option? >> >> On Friday, March 17, 2017 at 8:44:35 AM UTC-5, Raja gopalan wrote: >>> >>> Actually the option is selected successfully, but immediately after the >>> selection, this error was thrown and program was terminate

Re: [wtr-general] Re: Error while Selecting select_list by Value

2017-03-17 Thread Raja gopalan
ge. > Good luck. Let us know your success. > > On Friday, March 17, 2017 at 10:13:08 AM UTC-5, Raja gopalan wrote: >> >> It refreshes the page after the selection, might that be the reason? >> >> Note : selection is successfully happen. >> >> On Mar

Re: [wtr-general] Re: Error while Selecting select_list by Value

2017-03-17 Thread Raja gopalan
manually? > > Inputs can be disabled. > For example, https://www.w3schools.com/tags/att_option_disabled.asp > https://www.w3schools.com/tags/att_select_disabled.asp > > > > > On Friday, March 17, 2017 at 10:22:05 AM UTC-5, Raja gopalan wrote: >> >> Ok another problem

Re: [wtr-general] Re: Error while Selecting select_list by Value

2017-03-17 Thread Raja gopalan
gt; For example, https://www.w3schools.com/tags/att_option_disabled.asp > https://www.w3schools.com/tags/att_select_disabled.asp > > > > > On Friday, March 17, 2017 at 10:22:05 AM UTC-5, Raja gopalan wrote: >> >> Ok another problem I see here is after the selection, select list

[wtr-general] Problem with b.alert.ok

2017-03-21 Thread Raja gopalan
I have written the following code to handle alert b.alert.ok Please look at the below code(bottom), I went through debug, when it reaches to message ||= "waiting for true condition on #{inspect}" it automatically closes the alert so when it reaches to next line, that is Wait.until(timeout:

Re: [wtr-general] Problem with b.alert.ok

2017-03-21 Thread Raja gopalan
WebDriver.logger.level = :info` and then reply with the output. On Tue, Mar 21, 2017 at 12:47 PM, Raja gopalan wrote: > I have written the following code to handle alert > > b.alert.ok > > Please look at the below code(bottom), I went through debug, when it > reaches to &g

Re: [wtr-general] Problem with b.alert.ok

2017-03-21 Thread Raja gopalan
If I remove Inspect from that line it works very fine that means that line crosses by leaving alert open so that wait unit passes. By the way what is the rest of the info? On Mar 22, 2017 12:56 AM, "Titus Fortner" wrote: > Interesting. I need the rest of the information I asked for, or a > repr

Re: [wtr-general] Problem with b.alert.ok

2017-03-21 Thread Raja gopalan
lace this above the > code of concern: `Selenium::WebDriver.logger.level = :info` and paste the > output. > > Thanks > > On Tuesday, March 21, 2017 at 2:29:59 PM UTC-5, Raja gopalan wrote: >> >> If I remove Inspect from that line it works very fine that means that

Re: [wtr-general] Problem with b.alert.ok

2017-03-21 Thread Raja gopalan
message":"No alert is present"}} 2017-03-22 02:11:55 INFO Selenium -> GET session/53db3357-c228-46cd-bae2-ef9a0288856f/alert_text 2017-03-22 02:11:58 INFO Selenium <- {"name":"getAlertText","sessionId":"53db3357-c228-46cd-bae2-ef9a028885

Re: [wtr-general] Problem with b.alert.ok

2017-03-22 Thread Raja gopalan
sed with the upcoming w3c > protocol). > > What is your code between the element click and the alert click? > > > > > On Tuesday, March 21, 2017 at 3:43:31 PM UTC-5, Raja gopalan wrote: >> >> Yes it's not happening in Chrome, it works fine there. >> >> Wha

Re: [wtr-general] Problem with b.alert.ok

2017-03-22 Thread Raja gopalan
spect. Yes this is a bug, but thankfully an easy fix. > > https://github.com/watir/watir/pull/543/commits/1ef85710 > > Expect this to be released in 6.2.1 later this week. > > Thanks for reporting it! (and being persistent with answering my questions) > > Titus > > > On Wed

Re: [wtr-general] Problem with b.alert.ok

2017-03-23 Thread Raja gopalan
webdriver/webdriver-spec.html#dfn-error> will > be returned." > > I'm not sure why that exception was getting rescued, but when Firefox > throws the error (which you can see in the logs you provided) it also > closes the alert, which is why it wasn't there when your

[wtr-general] Exist method is needed while I use visible method, Can it be avoided?

2017-03-23 Thread Raja gopalan
I find I couldn't use visible method without exists method because visible method throws the error if element is not present. Though it seems to be logically correct, it doesn't give the practical easiness, for an example, I can't write *If element.visible?* instead I need to write *If element.

Re: [wtr-general] Exist method is needed while I use visible method, Can it be avoided?

2017-03-23 Thread Raja gopalan
t; try .present? instead > > > ------ > *From:* Raja gopalan > *To:* watir-general@googlegroups.com > *Sent:* Thursday, March 23, 2017 9:52 AM > *Subject:* [wtr-general] Exist method is needed while I use visible > method, Can it be avoided? > > I find I couldn't use vi

Re: [wtr-general] Exist method is needed while I use visible method, Can it be avoided?

2017-03-23 Thread Raja gopalan
t; try .present? instead > > > ------ > *From:* Raja gopalan > *To:* watir-general@googlegroups.com > *Sent:* Thursday, March 23, 2017 9:52 AM > *Subject:* [wtr-general] Exist method is needed while I use visible > method, Can it be avoided? > > I find I couldn't use vi

Re: [wtr-general] Exist method is needed while I use visible method, Can it be avoided?

2017-03-23 Thread Raja gopalan
Titus, I stongly believe checking enabled? present? writable? methods are unnecessary calls by WATIR because we know what kind of field we are going to interact so these calls to every element slows down the process So what I did was, I have CALLED the driver out of WATIR and started writing se

Re: [wtr-general] Exist method is needed while I use visible method, Can it be avoided?

2017-03-23 Thread Raja gopalan
u'd be better off using just watir once you get more used to all of the > dom methods it provides. it wraps a much more sophisticated api around the > webdriver stuff. > > > > -- > *From:* Raja gopalan > *To:* Watir General > *Sent:* Thu

Re: [wtr-general] Problem with b.alert.ok

2017-03-24 Thread Raja gopalan
which you can see in the logs you provided) it also > closes the alert, which is why it wasn't there when your code polled for it. > > Titus > > > On Wed, Mar 22, 2017 at 11:57 PM, Raja gopalan > wrote: > >> Thank you Titus, but you haven't explained me

Re: [wtr-general] Exist method is needed while I use visible method, Can it be avoided?

2017-03-24 Thread Raja gopalan
t is both in the DOM and displayed on the > page. I rarely have occasion to use #visible? since #present? is almost > always the better option. > > https://github.com/watir/watir/blob/master/lib/watir/ > elements/element.rb#L392-L396 > > > > On Thursday, March 23, 2017 at 1

[wtr-general] Selenium clicks the line but WATIR doesn't click the same link, So there is a bug the way WATIR identifying the Link

2017-03-26 Thread Raja gopalan
I have written the following selenium code to click this link @driver.find_element(:link,'Recharge').click It successfully clicks the line I have written the same code in WATIR as shown below @b.link(:text,'Recharge').click but it throws element not present error I checked out how this a

Re: [wtr-general] Exist method is needed while I use visible method, Can it be avoided?

2017-03-26 Thread Raja gopalan
w things down a little or a lot depending on what you are > trying to do. I have some ideas to increase performance in some situations, > but again, my focus is primarily on making it easy for people who don't > know all the details of their website's implementation to get cons

Re: [wtr-general] Exist method is needed while I use visible method, Can it be avoided?

2017-03-26 Thread Raja gopalan
good website design choice. :) > > What we might be willing to do is to provide a command that will enter > text by JavaScript. I'm curious if that would solve your problem. > > On Sun, Mar 26, 2017 at 12:32 PM, Raja gopalan > wrote: > >> I completely agree, WATIR

Re: [wtr-general] Selenium clicks the line but WATIR doesn't click the same link, So there is a bug the way WATIR identifying the Link

2017-03-26 Thread Raja gopalan
> to click a link that is not displayed? > > There are definitely ways that Watir can optimize its locator strategies, > but that part of the code is not trivial to dig into. As always, pull > requests are welcome. > > On Sun, Mar 26, 2017 at 12:18 PM, Raja gopalan > w

Re: [wtr-general] Selenium clicks the line but WATIR doesn't click the same link, So there is a bug the way WATIR identifying the Link

2017-03-27 Thread Raja gopalan
is finding a different element, I'd need to > see the underlying html. > > > On Sunday, March 26, 2017 at 11:38:52 PM UTC-5, Raja gopalan wrote: >> >> Link is clearly visible to click >> >> If I write >> >> @b.link(:text,'Recharge')

Re: [wtr-general] Exist method is needed while I use visible method, Can it be avoided?

2017-03-27 Thread Raja gopalan
ess of the industry. I get legacy apps and business or security > requirements, etc, etc, but this isn't 2002 any longer. > > You are more than welcome to avoid the clear call by using #send_keys > instead of #set > > > On Sunday, March 26, 2017 at 11:35:45 PM UTC-5, Raj

Re: [wtr-general] Exist method is needed while I use visible method, Can it be avoided?

2017-03-27 Thread Raja gopalan
pecification supported > means for clearing a field. > > (also of note, your code example is not platform independent) > > On Mon, Mar 27, 2017 at 1:35 PM, Raja gopalan > wrote: > >> Why do you want to execute such heavy function instead of passing a >> another key

Re: [wtr-general] Selenium clicks the line but WATIR doesn't click the same link, So there is a bug the way WATIR identifying the Link

2017-03-27 Thread Raja gopalan
;; ga.src = ('app/libs/edited/homepage/dc.js?version=1490500432236'); var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); On Monday, March 27, 2017 at 2:13:16 PM UTC-7, Titus Fortner wrote: > > I'd need to see the h

Re: [wtr-general] Selenium clicks the line but WATIR doesn't click the same link, So there is a bug the way WATIR identifying the Link

2017-03-28 Thread Raja gopalan
hi, sorry, that was not done properly, here is the html file Recharge On Monday, March 27, 2017 at 9:32:57 PM UTC-7, Titus Fortner wrote: > > This html doesn't have any links with text equal to "Recharge" > > > On Monday, March 27, 2017 at 1

Re: [wtr-general] Selenium clicks the line but WATIR doesn't click the same link, So there is a bug the way WATIR identifying the Link

2017-03-28 Thread Raja gopalan
I missed. It does > look like Watir is grabbing a different, hidden element. I'll try to take a > longer look at it tonight. > > Titus > > On Tuesday, March 28, 2017 at 11:24:16 AM UTC-5, Raja gopalan wrote: >> >> hi, sorry, that was not done properly, here is the

Re: [wtr-general] Selenium clicks the line but WATIR doesn't click the same link, So there is a bug the way WATIR identifying the Link

2017-03-28 Thread Raja gopalan
I missed. It does > look like Watir is grabbing a different, hidden element. I'll try to take a > longer look at it tonight. > > Titus > > On Tuesday, March 28, 2017 at 11:24:16 AM UTC-5, Raja gopalan wrote: >> >> hi, sorry, that was not done properly, here is the

Re: [wtr-general] Selenium clicks the line but WATIR doesn't click the same link, So there is a bug the way WATIR identifying the Link

2017-03-29 Thread Raja gopalan
payments-recharges"; data-i18n="recharge" > module-id="common">Recharge > target="_self" href="https://www.airtel.in/netbanking/payments-recharges"; > data-i18n="recharge" module-id="common">Recharge > > However,

Re: [wtr-general] Selenium clicks the line but WATIR doesn't click the same link, So there is a bug the way WATIR identifying the Link

2017-03-29 Thread Raja gopalan
quot;https://www.airtel.in/netbanking/payments-recharges"; > data-i18n="recharge" module-id="common">Recharge > > However, only the 2nd one, which is the one you want, is visible: > > b.links(:text, 'Recharge').map(&:visible?) > #=> [false,

Re: [wtr-general] Selenium clicks the line but WATIR doesn't click the same link, So there is a bug the way WATIR identifying the Link

2017-03-29 Thread Raja gopalan
I'll try to take a > longer look at it tonight. > > Titus > > On Tuesday, March 28, 2017 at 11:24:16 AM UTC-5, Raja gopalan wrote: >> >> hi, sorry, that was not done properly, here is the html file >> >> >> >> >> >> >>

Re: [wtr-general] Selenium clicks the line but WATIR doesn't click the same link, So there is a bug the way WATIR identifying the Link

2017-03-29 Thread Raja gopalan
Yes, WATIR manages extremely well! On Wednesday, March 29, 2017 at 7:13:36 AM UTC-7, Titus Fortner wrote: > > Yes, we discussed some of the peculiarities with matching strings and > regex a couple years ago: https://github.com/watir/watir/issues/342 > -- -- Before posting, please read http://

[wtr-general] Page_load timout problem

2017-04-03 Thread Raja gopalan
I am having this error C:/Ruby23/lib/ruby/2.3.0/net/protocol.rb:158:in `rbuf_fill': Net::ReadTimeout (Net::ReadTimeout) from C:/Ruby23/lib/ruby/2.3.0/net/protocol.rb:136:in `readuntil' from C:/Ruby23/lib/ruby/2.3.0/net/protocol.rb:146:in `readline' from C:/Ruby23/lib/ruby/2.3.0/net/http/respo

[wtr-general] Re: how to resize browser to different sizes or to maximize

2017-05-02 Thread Raja gopalan
This is the wrong coding Right one is below @browser.driver.manage.window.maximize @browser.driver.manage.window.resize_to(900,900) On Tuesday, May 2, 2017 at 11:41:15 AM UTC+5:30, Paul Denize wrote: > > This should work > > @browser.driver.window.maximize > @browser.driver.window.resize_to

Re: [wtr-general] Re: how to resize browser to different sizes or to maximize

2017-05-02 Thread Raja gopalan
hi, The below code is working for me in Firefox! @browser.driver.manage.window.maximize @browser.driver.manage.window.resize_to(900,900) require 'watir' is enough now, require 'watir-webdriver' is not necessary now. The recent watir is not a meta gem which doesn't choose betwen watir-classic

Re: [wtr-general] Re: how to resize browser to different sizes or to maximize

2017-05-02 Thread Raja gopalan
you don't have use @browser.driver.manage.window.maximize because you are invoking the driver to write selenium code but watir giving you another syntax which will automatically invokes the above code @browser.window.maximize The definition of maximize includes the above code, you can see here

Re: [wtr-general] Re: how to resize browser to different sizes or to maximize

2017-05-02 Thread Raja gopalan
e can you double check what ruby version you have. > > On Tue, May 2, 2017 at 10:00 AM, Raja gopalan > wrote: > >> >> hi, >> >> The below code is working for me in Firefox! >> >> @browser.driver.manage.window.maximize >> @browser.driver.man

[wtr-general] Re: Watir 6.1.0 attch existing ie window using url/title

2017-05-17 Thread Raja gopalan
Hi WATIR 6.0 onwards watir lies on selenium, selenium doesn't have the facility of attaching the browser. But you move between the window of the browsers if browsers are opened by drivers(not manually). On Tuesday, May 16, 2017 at 1:26:16 AM UTC+5:30, sivam wrote: > > Hi, recently I have migrat

Re: [wtr-general] Help with how to access an element with this xpath

2017-06-07 Thread Raja gopalan
b.element(xpath: "placeyourxpathhere").click On Jun 8, 2017 1:45 AM, "c w" wrote: > Hi, > > I need your help. > > Can one advise me how I can access the element that has the following > xpath into my angular app. > > /html/body[@class='lwc']/div[@class='lwc-app > ng-scope']/div[@class='lwc-cont

Re: [wtr-general] Help with how to access an element with this xpath

2017-06-08 Thread Raja gopalan
ment(:css => 'lwc-editIcon.ng-scope.ng-isolate-scope').click > > > > or > > @browser.element(:xpath, '//lwc-editIcon').wait_until_present.flash > > but these are not working. > > And I am not sure if we can access a custom tag like md-icon'

[wtr-general] Trying to install new WATIR

2017-06-22 Thread Raja gopalan
I have recently noticed that new WATIR versions released, it's 6.4 now, but still I have been using WATIR version 6.2.1 So I decided to upgrade my WATIR but it's throwing following error C:\Users\Rajagopalan>gem install watir ERROR: Could not find a valid gem 'watir' (>= 0), here is why:

[wtr-general] Re: Trying to install new WATIR

2017-06-24 Thread Raja gopalan
I don't know why, it works fine now! I don't understand why this problem happens sometime. On Friday, June 23, 2017 at 2:11:27 AM UTC+5:30, Titus Fortner wrote: > > Looks like a rubygems issue. Let us know if you keep seeing it. -- -- Before posting, please read http://watir.com/support. In sh

[wtr-general] Selenium Code is working but WATIR code fails to produce the result

2017-07-27 Thread Raja gopalan
Hi Titus, down votefavorite In my application, I am writing the following code b.element(id: 'B10_1_4').click It's not working and it's throwing the unable to locate the element

  1   2   >