[wtr-general] Re: How do i copy employee dataset into a textbox accurately?

2018-10-16 Thread Super Kevy
You still haven't demonstrated if its a standard textbox control or a hybrid, See http://watir.com/guides/wysiwyg/ On Sunday, October 14, 2018 at 7:56:50 PM UTC-5, Sharat Oommen wrote: > Hi all, > I have been facing this issue with watir where i havent been able to copy > a particular datase

[wtr-general] Re: How do i copy employee dataset into a textbox accurately?

2018-10-16 Thread Super Kevy
You really haven't explained if it's a textbox control or a hybrid. For example, https://groups.google.com/forum/#!topic/watir-general/7RvP3zIdPAw On Sunday, October 14, 2018 at 7:56:50 PM UTC-5, Sharat Oommen wrote: > > Hi all, > I have been facing this issue with watir where i havent been

[wtr-general] Re: Element not present only when I do @browser.window.maximize

2018-04-27 Thread Super Kevy
It may be as simple as acting on the parent element to the specific element (i.e. like a click) On Friday, April 13, 2018 at 9:03:42 PM UTC-5, Jeff Fagot wrote: > > Hello all, > > I am very confused by what I am experiencing. > I am using watir 6.10.2 with firefox (did not try a different brow

[wtr-general] Re: can we use watir for automation native mobile\desktop apps

2018-03-30 Thread Super Kevy
Ref: https://saucelabs.com/blog/native-vs-web-vs-hybrid-mobile-apps-testing-tools-and-techniques On Thursday, March 29, 2018 at 8:37:23 AM UTC-5, christina wrote: > > Hi all, > > I went to an interview and their apps are native on mobile and desktop. > > This is new to me and I am asking here t

[wtr-general] Re: Removal of :name attribute from divs and spans

2017-11-21 Thread Super Kevy
Check W3Shools https://www.w3schools.com/Tags/ref_standardattributes.asp and https://www.w3schools.com/tags/att_name.asp That attribute is not a default as far as I understand. On Tuesday, November 21, 2017 at 9:06:36 AM UTC-6, Cooper Legeza wrote: > > Hello, > > I've been hitting exception

[wtr-general] Re: Uploading file to a readonly field

2017-10-17 Thread Super Kevy
+1 example. Also check out w3Schools for some cool samples and learning https://www.w3schools.com/angular/default.asp enjoi On Saturday, October 14, 2017 at 11:17:38 AM UTC-5, Sean Poulter wrote: > > Hey Raymond, > > I've worked with Angular 1.x for a few years. I'm pretty sure the problem > yo

[wtr-general] Re: Uploading file to a readonly field

2017-10-11 Thread Super Kevy
Looks like angularJS Does the control resemble anything like the controls on http://angular-file-upload.appspot.com If yes file_field.set should work. Sample code: require "rubygems" require 'watir' puts 'start' $browser = Watir::Browser.new :chrome $browser.goto("http://angular-file-upload.ap

Re: [wtr-general] Re: WATIR is not waiting for select_list to exist

2017-08-10 Thread Super Kevy
resent On Thursday, August 10, 2017 at 11:23:19 AM UTC-5, Raja gopalan wrote: > > when_present is not necessary now because​ it's implicit since WATIR 6.0 > ONWARDS. > > On Aug 10, 2017 9:34 PM, "Super Kevy" > > wrote: > >> The object may not b

[wtr-general] Re: WATIR is not waiting for select_list to exist

2017-08-10 Thread Super Kevy
The object may not be visible The first hack is to add a sleep before the select. Not elegant but the kludge usually works sleep 30 A better method is to wait for it to be present b.select_list(:id => 'entry_1').when_present.select('Ruby') or b.select_list(:id => 'entry_1')..wait_until_

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

2017-06-23 Thread Super Kevy
This issue been around for a quite some time. http://guides.rubygems.org/ssl-certificate-update/ Should help. Research the topic for steps to resolve. On Thursday, June 22, 2017 at 2:24:17 PM UTC-5, Raja gopalan wrote: > > I have recently noticed that new WATIR versions released, it's 6.4 n

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

2017-05-18 Thread Super Kevy
Ref: http://www.rubydoc.info/gems/watir-webdriver/Watir/Window browser.window(title: "closeable window").use do browser.a(id: "close").click end On Thursday, May 18, 2017 at 9:11:13 AM UTC-5, sivam wrote: > > Thanks Rajagopalan. I opened 2 IE Windows from watir and I tried > Windows[n].use a

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

2017-03-17 Thread Super Kevy
lection is done , complete select list would be > disabled. > > On Mar 17, 2017 9:00 PM, "Super Kevy" > > wrote: > >> Is that the way it works manually? >> >> Inputs can be disabled. >> For example, https://www.w3schools.com/tags/att_op

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

2017-03-17 Thread Super Kevy
e here is after the selection, select list is > getting disabled, once after the selection you can't do it again. > > On Mar 17, 2017 8:46 PM, "Super Kevy" > > wrote: > >> That would be a logical indicator. If the page refreshes object handles >> w

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

2017-03-17 Thread Super Kevy
t; > Note : selection is successfully happen. > > On Mar 17, 2017 8:29 PM, "Super Kevy" > > wrote: > >> So can't access dead object - indicates the object is no longer valid . >> Try google search with subject "can't access dead object DOM"

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

2017-03-17 Thread Super Kevy
own and program was terminated. >> >> On Thursday, March 16, 2017 at 11:20:26 PM UTC+5:30, Super Kevy wrote: >>> >>> So the error is intermittent, 1 of 10 failures. >>> Your select may need to be attached to a parent object which has >>> refreshed.

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

2017-03-16 Thread Super Kevy
So the error is intermittent, 1 of 10 failures. Your select may need to be 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 obje

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 Super Kevy
ave the select_list problem too but I will create a separate > question for that. Our selenium framework selects successfully but Watir > doesn't! (I will create separate thread for that) > > > > > On Tuesday, February 14, 2017 at 11:49:32 PM UTC+5:30, Titus Fortner

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-14 Thread Super Kevy
So the issue occurs manually as well. That suggests 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

[wtr-general] Re: Watir-webdriver throws 'not clickable' error even when element is visible, present

2016-08-17 Thread Super Kevy
This seems to work for me. Use send keys :end to drive the browser scroll to the bottom of the page Reference: # http://watir-techniques.blogspot.com/2013/02/scroll-down-using-sendkeys-space.html ie = Watir::Browser.new( :chrome) ie.window.maximize() ie.goto('shop.coles.com.au/online/mobile/na

Re: [wtr-general] Re: Passing value to is not working

2016-06-09 Thread Super Kevy
vent on td. > The table has been created on the page as editable html using javascipt. > When we click on table cell, that cell becomes editable. > On Jun 9, 2016 1:23 PM, "Super Kevy" > wrote: > > Looks like your table ID is not a string. You may have meant to use

Re: [wtr-general] Re: Passing value to is not working

2016-06-09 Thread Super Kevy
Looks like your table ID is not a string. You may have meant to use index. Your index may be zero based, I don't recall what 1.8.6 used. If you can use chrome's inspector (or your browsers inspector) to help figure out IDs and Names of elements it makes life easier. Check table within http://rel

[wtr-general] Re: Passing value to is not working

2016-06-09 Thread Super Kevy
Why such and old version of Watir that version is from 2009: https://rubygems.org/gems/watir/versions Why not show us your code. It makes debugging for the group easier. On Wednesday, June 8, 2016 at 10:46:45 AM UTC-5, sivam wrote: > > Hi all, > > I am using watir 1.6.5 to interact with page

[wtr-general] Re: Watir-webdriver throws 'not clickable' error even when element is visible, present

2016-04-20 Thread Super Kevy
Consider something like this. browser.link(text: "Full website").parent.click Ref: http://stackoverflow.com/questions/19251356/how-to-access-the-following-link-element-using-watir On Tuesday, April 19, 2016 at 6:08:52 AM UTC-5, Awesome Possum wrote: > > I am trying to automate tests in Ruby usi

Re: [wtr-general] Re: Button Element not visible in watir

2016-04-08 Thread Super Kevy
Also consider this type of variant format. (I had to resort to this for a funky designed control using angular js ) ie.radio(:id => 'idname', value => '0').parent.click On Friday, April 8, 2016 at 8:38:34 AM UTC-5, Super Kevy wrote: > > Instead of se

Re: [wtr-general] Re: Button Element not visible in watir

2016-04-08 Thread Super Kevy
Instead of set on the radio button try .click On Thursday, April 7, 2016 at 6:53:38 PM UTC-5, Ricardo RodriguezsSalinas wrote: > > > > El miércoles, 22 de julio de 2015, 6:24:52 (UTC-5), Mahesh Mesta escribió: >> >> Hi, >> >> I tried using browser.span(:text, 'Submit').click, >> It worked. >>

[wtr-general] Re: Watir ignores the maximum character length on a text field.

2016-03-15 Thread Super Kevy
And when you look at whats been sent into the input is it greater then 33 chars or is it suppressed. (i.e. b.text_field(:id => "text").value) When you submit the form are you pushing the clipped string or the full string to the server. Is there a maxlength and/or size attribute on the input? On

[wtr-general] Re: Time out issue in Watir

2016-01-20 Thread Super Kevy
Likely the timeout it too short Add this prior @b.button(:id => 'exitActionButton').wait_until_present(120)# up to 3 minutes @b.button(:id => 'exitActionButton').click Or use another verification point with the .wait_until_present(nSecs) On Tuesday, January 19, 2016 at 5:41:27 PM UTC-6,

[wtr-general] Re: Access button via it's path

2015-12-08 Thread Super Kevy
See http://stackoverflow.com/questions/10713102/how-do-i-locate-a-custom-tag-like-g You may be looking at something like: browser.element( :tag_name => "g" ).click On Tuesday, December 8, 2015 at 1:53:44 AM UTC-6, ibrahim deek wrote: > > Can anyone help please? > > -- -- Before posting, pleas

[wtr-general] Re: .click is throwing error in windows 10 but working fine in linux(Ubuntu)

2015-12-08 Thread Super Kevy
You are lacking a verification that the page is ready or the object exists. b.button(:class => "ga_Finder_Load_More").wait_until_present(60) b.button(:class => "ga_Finder_Load_More").click or b.button(:class => "ga_Finder_Load_More").when_present(60).click On Monday, December 7, 201

[wtr-general] Re: reg: Accessing the files from parent directory in child directory

2015-12-04 Thread Super Kevy
Try this link and see if it fills the need. http://stackoverflow.com/questions/15697983/directory-traversal-in-ruby On Friday, November 27, 2015 at 3:57:04 AM UTC-6, VIDYA SAGAR POGIRI wrote: > > > > > > Hi, > I want to access the files in folder 2 from the folder 4, I mean my Present > Working

[wtr-general] How can I get all the content in a div element then strip out a table element leaving only what elements I want?

2015-12-04 Thread Super Kevy
How can I get all the content in a div element then strip out a table element leaving only what elements I want? Assume a structure like http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-genera

[wtr-general] Re: Watir Basis (Help ?)

2015-12-03 Thread Super Kevy
Here's my social take on ruby based watir and ruby based watir-webdriver. A fast ramp-up with good productivity in less then 2-3 weeks. Great proficiency in one to two months. On Thursday, December 3, 2015 at 9:28:32 AM UTC-6, Super Kevy wrote: > > Google watir cheat sheet. Al

[wtr-general] Re: Watir Basis (Help ?)

2015-12-03 Thread Super Kevy
Google watir cheat sheet. Also consider Watir-WebDriver https://github.com/watir/watir/wiki/Cheat-Sheet http://watir.com/documentation/ Good help is always found on stackoverflow. Just google a watir topic and it usually shows up. On Friday, November 13, 2015 at 12:26:38 AM UTC-6, Nida An

Re: [wtr-general] Re: Can 'PDF' files be read in Ruby?

2015-10-05 Thread Super Kevy
ks for your reply... > > Regards > Gauri > > On Thursday, October 1, 2015 at 8:34:47 AM UTC-5, Super Kevy wrote: >> >> Why not just to ruby FileUtils file compare the *.pdf? >> >> BTW: other readers that are 100% gems are >> http://www.rubydoc.info/gems

Re: [wtr-general] Re: Can 'PDF' files be read in Ruby?

2015-10-01 Thread Super Kevy
Why not just to ruby FileUtils file compare the *.pdf? BTW: other readers that are 100% gems are http://www.rubydoc.info/gems/pdf-reader/1.3.3 PDF-Reader https://github.com/prawnpdf/pdf-inspector PDF-Inspector On Wednesday, September 30, 2015 at 8:23:29 PM UTC-5, Gauri Kuwar wrote: > > Hello

[wtr-general] Re: Reg: uploading image using Watir Web Driver

2015-09-30 Thread Super Kevy
other code . > THanks > > On Friday, September 25, 2015 at 6:54:19 PM UTC+5:30, Super Kevy wrote: >> >> 1. Had it been a standard control I would have suggested something like: >> browser.file_field.set 'C:/watir.txt' >> 2. Consider trying the alert api.

[wtr-general] Re: Reg: uploading image using Watir Web Driver

2015-09-25 Thread Super Kevy
1. Had it been a standard control I would have suggested something like: browser.file_field.set 'C:/watir.txt' 2. Consider trying the alert api. this reference http://watirwebdriver.com/javascript-dialogs/ - It may be as simple as # Enter text to prompt browser.alert.set "C:/watir.txt" 3. Fina

[wtr-general] Re: Handling a pop up in ruby and getting value from the pop up

2015-09-15 Thread Super Kevy
What type of popup. A div element set or a modal dialog like a javascript alert. On Monday, September 14, 2015 at 11:13:35 PM UTC-5, Harsha Vardhan wrote: > > Hi, > I am using ruby mine and using watir or selenium webdriver how can I > handle pop up.?? > I am trying to get a value displayed dyn

[wtr-general] Re: How to call a test script from another test script in watir webdriver

2015-09-08 Thread Super Kevy
Duplicate see https://groups.google.com/forum/#!topic/watir-general/FQIj73kqJj4 On Friday, September 4, 2015 at 7:00:23 AM UTC-5, VIDYA SAGAR POGIRI wrote: > > Hi i want to call a test script from another test script, kindly help me. > -- -- Before posting, please read http://watir.com/support

[wtr-general] Re: How to call a test script from another test script in watir webdriver

2015-09-08 Thread Super Kevy
A simple way http://stackoverflow.com/questions/6841995/how-to-run-multiple-watir-scripts-from-one-general-script or consider wrapping in exec or system see http://mentalized.net/journal/2010/03/08/5-ways-to-run-commands-from-ruby/ On Friday, September 4, 2015 at 7:00:51 AM UTC-5, VIDYA SAGAR

[wtr-general] Re: Reg: click on center of Xpath Element

2015-08-21 Thread Super Kevy
Isn't that the default behavior of the click method? On Wednesday, August 5, 2015 at 9:43:37 AM UTC-5, VIDYA SAGAR POGIRI wrote: > > Hi i want to click on center of xpath element in watir web driver, so > kindly help me... Waiting for reply eagerly > -- -- Before posting, please read http://wa

[wtr-general] Re: a human-friendly tool for testing and reviewing visual regressions.

2015-08-21 Thread Super Kevy
I use a method where I take the text on the screen and put it into a master reference file. Then i write the test screen text into a compare file Then I use FileUtils to compare the two files. You could use HTML instead of text for the scrape. Whey text or html instead of bitmaps. I replay on

[wtr-general] Re: File uploading in watir webdriver where file_filed is not present

2015-07-29 Thread Super Kevy
Please review this article http://brian.rarevisions.net/articles/2011/12/16/setting-the-file-for-html-input-file-fields-with-webdriver/ On Tuesday, July 28, 2015 at 9:34:10 AM UTC-5, swapna gadkari wrote: > > I have no fiel_field present in DOM. > I want on button click file should get uploaded

[wtr-general] Re: Need help how to work with watir testing angularjs app

2015-07-15 Thread Super Kevy
You may wish to review: https://jkotests.wordpress.com/2012/08/28/locate-element-via-custom-attribute-css-and-xpath/ else something as simple as browser.text_field(:class,"ng-pristine ng-valid ng-touched").send_keys('thefilename') The checkbox code eludes me, This looks like the remove featu

[wtr-general] Re: Can I catch console errors using watir webdriver

2015-03-17 Thread Super Kevy
http://stackoverflow.com/questions/7340380/can-watir-webdriver-capture-console-errors No idea if this works On Monday, March 16, 2015 at 5:22:34 AM UTC-5, swapna gadkari wrote: > > I want to catch console errors using watir webdriver.Is there any way to > do it? > -- -- Before posting, plea

[wtr-general] Re: Checking class equality in browser

2015-03-13 Thread Super Kevy
myArray = b.divs(:class=>"_again") myArray.each do | theDiv | puts div.text.to_s end On Friday, March 13, 2015 at 8:07:50 AM UTC-5, Dan wrote: > > Posting the error you get would help. You don't need the "for i" or the > each. Just the below should do it: > > b.divs(:class => "_again").each {

[wtr-general] Re: Test for Class Equality

2015-03-13 Thread Super Kevy
Lets see maybe using pluralism of ruby myArray = browser.divs(:class,"_neveragain") On Thursday, March 12, 2015 at 4:30:27 AM UTC-5, Vish wrote: > > Hey, > > I'm trying to sieve through all the div elements in a page and print the > content of all those whose class value is "_neveragain". How

Re: [wtr-general] Help! browser.text not returning the body of the page

2015-03-12 Thread Super Kevy
Firefox for google gives me the default text scrape: Screen reader users, click here to turn off Google Instant. Gmail Images Sign in Google Privacy Terms Settings Advertising Business About This line is working correctly. its returning the whole page text not just search results puts "b

[wtr-general] Re: automating httpwatch with watir

2015-02-25 Thread Super Kevy
What version of Watir are you on? require 'watir-classic' # or require 'watir-webdriver' ie = Watir::Browser.new(:internet_explorer') ie.maximize On Monday, February 23, 2015 at 11:38:19 PM UTC-6, Mike McClarin wrote: > > Hi, I am trying to automate httpwatch with watir. Please see my

[wtr-general] Re: Ruby Watir to get specific html element of a page

2015-02-23 Thread Super Kevy
What exactly are you trying to do? Get the value of the street (i.e return the street address of the user?) I assume you are using watir-webdriver ruby. Correct? On Friday, February 20, 2015 at 3:20:36 AM UTC-6, Nice Faith wrote: > > i try this one: > > puts @browser.execute_script <<-JS >

[wtr-general] Re: Cant find element when i tried writing a command to click on play icon for embedded player

2015-02-23 Thread Super Kevy
What is your version of ruby and watir-webdriver. Access to frames is now separated by frame type (ie. frame & iframe) to access an iframe typically need to include it the watir syntax browser.iframe(:id,'player').exists? browser.iframe(:id,'player').visible? browser.iframe(:id,'player').pres

[wtr-general] Re: How to display content of text file in the browser using watir?

2015-02-23 Thread Super Kevy
Please see your other topic with this item as this is topic hijack https://groups.google.com/forum/#!topic/watir-general/gG8pQ2OknLk On Monday, February 23, 2015 at 10:09:39 AM UTC-6, teste...@gmail.com wrote: > > > i have a similar problem, im trying to click on the play icon of an >> embedd

[wtr-general] Re: Cant find element when i tried writing a command to click on play icon for embedded player

2015-02-23 Thread Super Kevy
You seem compliant based on http://www.w3schools.com/html/html_youtube.asp what does your test code look like? On Monday, February 23, 2015 at 10:13:04 AM UTC-6, teste...@gmail.com wrote: > > https://www.youtube.com/embed/9KBlXb3j2Q8?autoplay=0&autohide=1&rel=0&enablejsapi=1&origin=https%3A%2F%2

[wtr-general] Re: How to display content of text file in the browser using watir?

2015-02-21 Thread Super Kevy
Did you try using the watir browser.goto( theURL) with the file attribute instead of http When I manually open a text file with the chrome browser the url shows something like file:///C:/ABC.txt therefore something like browser.goto('file:///C:/ABC.txt') Reference: http://stackoverflow.c

Re: [wtr-general] Re: How to display content of text file in the browser using watir?

2015-02-21 Thread Super Kevy
Plus 1 Chuck van der Linden. I am only interested in errors as well. *I have scripted mine so that it only includes screenshots of failed steps.* Even then consider screen shots may only provide limited value on understanding failure cause. A well versed failed message should lead you to the ca

[wtr-general] Re: Display Error if input is wrong. How can I do this using watir?

2015-02-13 Thread Super Kevy
/runner.rb:85:in `run' > from > c:/Ruby193/lib/ruby/gems/1.9.1/gems/rspec-core-3.2.0/lib/rspec/core > /runner.rb:70:in `run' > from > c:/Ruby193/lib/ruby/gems/1.9.1/gems/rspec-core-3.2.0/lib/rspec/core > /runner.rb:38:in `invoke' > from &

[wtr-general] Re: Does watir checks inputs datatype?

2015-02-11 Thread Super Kevy
I'm not sure if what you mean datatype. Typical inputs .text_field for any text inputs .checkbox for any checkboxes .select for any select lists On Tuesday, February 10, 2015 at 11:21:45 PM UTC-6, Ping-0t wrote: > > Hello Again guys, > > I am just wondering if watir checks inputs datatyp

[wtr-general] Re: Display Error if input is wrong. How can I do this using watir?

2015-02-11 Thread Super Kevy
Welcome! Assume the following example and apply to your test Keep in mind simple verification points using things like .wait_until_present(90) .include? .present? .visible? Very rough sample require 'watir-webdriver' ie = Watir::Browser.new(:chrome) ie.window.maximize() ie.goto('http://mys

[wtr-general] Re: verify if checkbox is checked

2015-01-28 Thread Super Kevy
hy the label is containing the input, that looks weird. On Tuesday, January 27, 2015 at 9:07:30 PM UTC-6, jacksta...@gmail.com wrote: > > > Hi Super Kevy, Thanks for the suggestions.. unfortunately the set? and > checked? don't work. > > the checkbox, which is

[wtr-general] Re: verify if checkbox is checked

2015-01-27 Thread Super Kevy
Set/Clear .set? Returns true if the element is checked. alias .checked? .clearWill clear the check. @browser.checkbox(:id,'sampleId').set? if @browser.checkbox(:id=>"sampleId").attribute_value('class') == "custom-checkbox checked" then puts 'hello' end myCheckedCheckboxes = @browser.ch

[wtr-general] Re: Issue running script on Chrome ( TestWise, Selenium-WebDriver, RSpec )

2015-01-20 Thread Super Kevy
Are you actually doing authorized work on this Apple website?. Are you compliant with the terms of use agreements? http://www.apple.com/legal/internet-services/terms/site.html Your Use of the Site You may not use any “deep-link”, “page-scrape”, “robot”, “spider” or other automatic device, progr

[wtr-general] Re: Watir - Identifying a Span ID and its Text Element - False

2015-01-02 Thread Super Kevy
puts @browser.span(:id,'lblTitleHolder').text.to_s puts @browser.span(:id,'lblTitleHolder').text.include?('Welcome').to_s puts @browser.html.include?('Welcome').to_s On Friday, December 26, 2014 4:15:19 PM UTC-6, Ma St wrote: > > I have reviewed many posts, but am unable to get passed this. I

[wtr-general] Re: Special Characters

2014-12-08 Thread Super Kevy
Here's some hints. 1. Save your scripts in format UTF-8 2. Use .encode('UTF-8') with your input data strings or sources "sólo está".encode('UTF-8'). 2-1. In some cases I've had to encode twice as sString.encode('UTF-8').encode('UTF-8'). 3. add #encoding: UTF-8 as the first line of the script

[wtr-general] Re: Scraping visible text / Locate by formatted text

2014-11-07 Thread Super Kevy
Div don't use the symbolic :text for dom matching (locating) which is what you're trying to do. with the failing syntax. Divs use :name :id :index On Wednesday, November 5, 2014 3:36:23 PM UTC-6, Andrew Le wrote: > > In Ruby, I'm trying to scrape a page's visible text, save it to a > datab

[wtr-general] Re: duplicate links in the webpage

2014-10-16 Thread Super Kevy
ie.link(:text=>'Building Address',:index=>1).click ie.link(:text=>'Building Address',:index=>2).click On Saturday, August 2, 2014 4:36:48 AM UTC-5, Rams wrote: > > > Hi, > > I have duplicate links in the webpage as I attached (ex. Building > Address). When I looked at the html source/through deve

[wtr-general] Re: Accessing checkbox using watir webdriver

2014-10-16 Thread Super Kevy
# Focus on last known input and tab to the next field, $browser.text_field(:id, 'password').send_keys( :tab ) $browser.send_keys( :space, :tab ) #checkbox 1 $browser.send_keys( :space, :tab ) #checkbox 2 On Wednesday, November 6, 2013 4:04:42 PM UTC-6, Mihir Dhandhusaria wrote: > > This is

[wtr-general] Re: @browser.send_keys :f12 not working in chrome

2014-10-16 Thread Super Kevy
Try this reference: https://github.com/kl/autoit-ffi gem install autoit-ffi # code sample for watir require ' watir'' require 'autoit-ffi' ie = Waitir::Browser:new( :chrome ) ie.window.maximize() sleep 2 ie.goto('http://www.google.com') sleep 2 ai = AutoItFFI::AutoIt # Open chromes developer

[wtr-general] Re: Chrome driver launches test app with part of app offscreen right

2014-09-29 Thread Super Kevy
1. Check your zoom level. It should be set to 100% 2. To launch chrome with the window maximized (ruby, webdriver) ie = Watir::Browser.new ( :chrome, :switches => %w[ --disable-extensions ] ) ie.window.maximize window.maximize works in IE, FF, CHROME On Tuesday, August 26, 2014 11:22:

[wtr-general] Re: Encoding issues in watir firefox browser?

2014-09-29 Thread Super Kevy
You may need to encode. Something like: puts @agent.element(:id,'blah').encode('UTF-8').to_s NOTE: Some characters may not encode to UTF-8 however the euro is. If the comparisons are in your script then that script file needs to be saved in UTF-8 format. On Tuesday, September 23, 2014 11:35:

[wtr-general] Re: @browser.send_keys :enter not working with chrome

2014-09-27 Thread Super Kevy
ks for responding Roman and Super Kevy! > > My code is as below > > def search_emp(id) > > #self.emp_id = id > > @browser.send_keys [self.emp_id=id , :enter] > end > > the solution here works ,but send the emp id twice and hit enters > for e.g. > if emp id = 1234 >

[wtr-general] Re: @browser.send_keys :enter not working with chrome

2014-09-23 Thread Super Kevy
I'm sure send_keys itself is working fine. When you execute the send_keys method do you know what object has focus or are you just playing to the browser in whatever state its in. Try making sure the object you want to send_keys to is in focus or is consistently reached. On Monday, Septembe

[wtr-general] Re: Command executed within a test script behaves differently to when the same command is executed in irb

2014-09-04 Thread Super Kevy
It may be as simple as timing issue. What do you fingerprint to verify you logged in ok. You can use and .exists? present? visible? Typically after a click i follow up with a fingerprint assertion something like browser.span(:text,'Add a new Quick Event').wait_until_present(30) BTW: When in

[wtr-general] Re: How do I invoke a click on an image partially behind another image (higher z-index) in IE?

2014-08-29 Thread Super Kevy
You may be able to offset the click. See referernce: http://stackoverflow.com/questions/14685418/how-to-click-on-a-specific-coordinates-of-an-element Alternately if the object can be tabbed to manually then set focus to the preceding element and .send_keys { : tab, ;enter }. On Thursday, Augu

[wtr-general] Re: file_field().set crashing watir

2014-07-18 Thread Super Kevy
Method Missing implies your not calling a valid method in rautomation I don't see the find_hwnd method in http://www.ruby-doc.org/gems/docs/r/rdp-rautomation-0.6.3.1/RAutomation/Adapter/WinFfi/Window.html Sample Referece: http://itreallymatters.net/post/2352350743/automating-windows-and-their-c

[wtr-general] Re: Unable to acces text_field inside a frame coz of some "#document" tag in the HTML.

2014-07-16 Thread Super Kevy
What is the doctype of the parent page? What is the doctype of the frames? I have also seen the issue with frame failures on some older XP machines with limited memory. My work-a-round was to tab to the control - very ugly and brittle. On Wednesday, January 23, 2013 8:38:33 AM UTC-6, Deepak

[wtr-general] Re: href method does not give the 'right' url

2014-07-16 Thread Super Kevy
his kind of binding? > > Doesn't watir just use xpath or css underneath to find the element from > the document? Why will it trigger any binding? > > On Wednesday, July 16, 2014 10:10:47 AM UTC-4, Super Kevy wrote: >> >> >> > href="/url?sa=t&rct=j&q=&a

[wtr-general] Re: href method does not give the 'right' url

2014-07-16 Thread Super Kevy
http://watir.com/*";>Watir.com | Web Application Testing in Ruby Perhaps its a data binding technique. Notice there is also a related mousedown event which is the target url. On Wednesday, July 16, 2014 8:33:17 AM UTC-5, Steven Yue wrote: > > Hi, guys > > I'm new to watir. I'm trying to use

[wtr-general] Re: Auto reload

2014-06-23 Thread Super Kevy
browser.refresh http://stackoverflow.com/questions/12215770/how-you-can-refresh-a-page-in-watir-webdrive On Thursday, June 19, 2014 10:15:07 AM UTC-5, Alexander Farley wrote: > > Is there a mechanism for automatically reloading if a page fails to load? > > I'm not talking about timeout. I am

[wtr-general] Re: New to WATIR. Help with my script (simple navigation with asserts)

2014-06-11 Thread Super Kevy
Did you ever get a handle on your problems? I've got hints for 1 & 2, I think if you search this forum for logging pass fails you may find some hints. Item 1) You need it to navigate back to the source page after the assert. it may be as simple as $browser.back or $browser.navigate.back $brow

[wtr-general] Re: Need to to scroll to bottom of list so remainder of items display and watir-webdriver can interact with them

2014-06-10 Thread Super Kevy
Try the wd private method, it may work. something like: browser.li( ).wd.location_once_scrolled_into_view #scroll to object On Monday, June 9, 2014 12:30:31 PM UTC-5, Joe Fl wrote: > > Hi, > > I have div that has a number of checkboxes that display columns in a grid > to the right. The pro

[wtr-general] Re: application/x-shockwave-flash : Need help

2014-06-09 Thread Super Kevy
Try this link: https://github.com/enix12enix/sikuli-remote-control Search this group for the topic flash. Its been discussed many times. On Thursday, May 22, 2014 8:43:34 AM UTC-5, Sanjeev Singh wrote: > > Hi All, > > My application has the following HTML code > type="application/x-shockwave-f

[wtr-general] Re: how to efficiently loop thru a table to confirm the correct data is there?

2014-06-09 Thread Super Kevy
This thread may help. Regards https://groups.google.com/forum/#!searchin/watir-general/Any$20fast$20ways$20to$20parse$20a$20table%7Csort:relevance/watir-general/jk58Xf0DomE/Vdwwz2pYndQJ On Friday, June 6, 2014 3:21:18 PM UTC-5, Joe Fl wrote: > > Hi Everyone, > > I am putting a test together to

[wtr-general] (webdriver) Chrome 34 displays the banner message you are using an unsupported command-line flag --ignore-certificate-errors

2014-06-09 Thread Super Kevy
Chrome has upgraded to Version 34.x and when I run watir-webdriver I see the that Chrome 34 displays the banner message you are using an unsupported command-line flag --ignore-certificate-errors Chromedriver --version reports 2.10.267521 browser = Watir::Browser.new ( :chrome, :switches=%w[ --

Re: [wtr-general] Unable to find the chromedriver executable

2014-06-09 Thread Super Kevy
Try http://stackoverflow.com/questions/5818403/jenkins-hudson-environment-variables. It may provide insight on jenkins $path. On Wednesday, March 27, 2013 4:05:05 PM UTC-5, Pavak Shah wrote: > > It is working fine if I run my test case from the IDE but when I try to > run the same file from

[wtr-general] Re: Issue using .options with select_list

2014-05-23 Thread Super Kevy
Such an old version. Makes no sense not to update. However I think this is what you're looking for: ie.*select_list*(:index, 1).getAllContents https://groups.google.com/forum/#!searchin/watir-general/select_list$20contents/watir-general/_ehpmnhbEi4/MLLkGj2qOe0J You can probably search this

[wtr-general] Re: Need info about how to get browser version in watir classic and about ie8 and ie9 support.

2014-04-10 Thread Super Kevy
First your running some ancient Ruby and Watir. Consider moving forward. see reference: https://raveendran.wordpress.com/tag/execute_script/ Code for Watir WebDriver IE Browser : require 'rubygems' require 'watir-webdriver' br=Watir::Browser.new :ie ie=br.execute_script("return navigator.userA

[wtr-general] Re: Parametrization in Watir

2014-02-13 Thread Super Kevy
Oscar is right I may have given you a tough example so I'll dumb it down, but it may not be dumbed down enough. Simple ruby hash example: Ref: google search: Ruby Class Hash myHash = { "userName" => "henry", "password"=>"thepw" } In your form fill assume two text fields login and password b

[wtr-general] Has anyone used the Module: Watir::PerformanceHelper

2014-02-13 Thread Super Kevy
Has anyone used the Module: Watir::PerformanceHelper Ref: http://90kts.com/2011/04/19/watir-webdriver-performance-gem-released/ I'm curious about it and would like to know more. -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-genera

[wtr-general] Re: Parametrization in Watir

2014-02-13 Thread Super Kevy
TRY: http://roo.rubyforge.org/ and search the group for this topic also search xls.rb and read excel in this group you'll find hints and methods I personally use xls.rb https://github.com/bash0C7/XLS/blob/master/xls.rb xls.rb exists all over the web. I put this and an excel spreadsheet i

[wtr-general] Re: script in chrome

2014-01-17 Thread Super Kevy
Watir-Classic or Watir-Webdriver? If Watir-Classic check this link https://github.com/watir/watir-classic Does classic work with chrome? Here's a sample browser method using watir-webdriver require 'watir-webdriver' def method_OpenBrowser(ie,sURL,sBrowserType) puts ' * method_OpenBrowser'

[wtr-general] Re: Click span doesn't work in Firefox 26.0

2014-01-13 Thread Super Kevy
maybeelement.parent.click On Friday, December 13, 2013 10:09:44 AM UTC-6, Lucian Stan wrote: > > > Hi, > > I have the following html sample: > > ... > > > > > > > > > > > Browse > > > > > > ... > > I'm trying to click on the Browse span: > > $driver = Wat

[wtr-general] Re: Using Watir with Chrome browser to find element on just opened web page

2014-01-13 Thread Super Kevy
Object.wait_until_present On Monday, January 13, 2014 5:33:14 AM UTC-6, QOExcel wrote: > > Hi, everyone!! > I try to find button on just opened page without sleep command. > > def open_user_creation_dialog > sleep 1 > self.create_user_button_element.when_visible.click > end > > When

[wtr-general] Re: How do i read a .txt file using watir script

2014-01-10 Thread Super Kevy
Seems like a lot of overhead reading and parsing a file that way. Look at http://roo.rubyforge.org/ the Roo gem. I believe you'll find useage and hints in this list somewhere. You may want to rethink into using Ruby Class Hash for this as well. myParams = { 'url' => 'http://198.44.23.11

[wtr-general] Re: How do i read a .txt file using watir script

2014-01-10 Thread Super Kevy
hint Google Ruby Class file http://www.ruby-doc.org/core-2.0.0/File.html On Monday, September 14, 2009 5:36:50 AM UTC-5, msazeez28july wrote: > > Hi, > We have watir scripts which requires url, username, password and > path (location of the datatables). > These parameters are ch

[wtr-general] Re: How to test infinite scrolling on web page

2013-12-20 Thread Super Kevy
Try this reference: http://stackoverflow.com/questions/14845338/how-to-scroll-a-web-application-in-watir On Friday, December 20, 2013 3:53:20 AM UTC-6, Anisha wrote: > > Hi, > > I am using watir-webdriver. The application that I am testing has infinite > scrolling implemented. It is more or les

[wtr-general] Re: Help for mysql connect and security warning in internet explorer ie8.

2013-12-05 Thread Super Kevy
And you did gem install mysql? On Wednesday, December 4, 2013 2:33:59 AM UTC-6, Bhavesh wrote: > > Hi, > > > > I have ruby 193 installed and have following gems on my machine : > > > > *** LOCAL GEMS *** > > > > archive-tar-minitar (0.5.2) > > bigdecimal (1.1.0) > > childprocess (0.3.9) >

[wtr-general] How to validate a page anchor link does scroll into the view

2013-12-02 Thread Super Kevy
Assuming the code snippet. Visit the Useful Tips Section ... more page layout here ... Useful Tips Section Is there a way to confirm the element scrolls into view using the page anchor or should I just confirm the target anchor has the matching id? -- -- Before posting, please read

[wtr-general] Re: Using watir, how can I read the values from a dropdown list and create an array?

2013-10-02 Thread Super Kevy
Maybe somthing like this http://stackoverflow.com/questions/7245702/watir-webdriver-counting-number-of-items-in-a-ul-list MyList = browser.ul(:id => "rcbList") MyList.lis.each do |li| puts li.text MyArray << li.text #etcend On Monday, September 30, 2013 7:46:06 AM UTC-5, sp22 wrote: > >

[wtr-general] Re: Testing Methodology with Watir

2013-08-26 Thread Super Kevy
Are the developers doing (or writing) unit tests? I'm assuming your developed code is not based on ruby or rails but some other language. But that should be no problem as most languages allow unit testing. Chuck is steering you in the right direction with test first design. Cucumber works great f

[wtr-general] Re: New Chrome 29 driver and ie.link.exists? error

2013-08-23 Thread Super Kevy
updating the selenium-webdriver gem since it's at 2.35. > Also did you get Chromedriver2 or chomedriver? I don't think chromedriver > will even work at all, so you've probably got the new new. > > On Friday, August 23, 2013 12:08:08 PM UTC-4, Super Kevy wrote: >> >

  1   2   3   >