[wtr-general] Re: How to get control on overlay pop up window

2014-02-11 Thread Ankita Mutneja
Yeah I also need the reply of same asap On Thursday, 6 February 2014 11:26:40 UTC+5:30, ARGHYA CHAKRABORTY wrote: > > > > Hi > > There is a button in an webpage , clicking on which , an Overlay page is > opened(Background parent page gets shadowed by the front overlay page) . > That overla

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

2013-11-07 Thread Ankita
$browser.element(:xpath, "//label[@class='checkbox']/input").isvisible? On Fri, Nov 8, 2013 at 8:58 AM, Ankita wrote: > Not really sure what could be the best way apart from jquery ... > try to use xpath to see if the checkbox is visible as sometimes its not > visib

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

2013-11-07 Thread Ankita
see what you get On Fri, Nov 8, 2013 at 8:45 AM, Mihir Dhandhusaria wrote: > Hey Ankita, > > I tired but its not selecting checkbox . Do you recommend something else ? > > > On Thu, Nov 7, 2013 at 4:33 PM, ankita bansal wrote: > >> Hi Mihir >> >&

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

2013-11-07 Thread ankita bansal
: > > $browser.checkbox(:name, "termsAgree").set > > Let me know if this works or not. > > Thanks, > Anukul > Sent from BlackBerry® on Airtel > -- > *From: * Mihir Dhandhusaria > *Sender: * watir-general@googlegroups.com > *Date: *

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

2013-11-06 Thread Ankita
I have experienced too that some times we need to trigger the checkbox event with jquery instead of simple watir methods.. Try this, might work.. *$browser.execute_script("$('input:checkbox[name=\"termsAgree\"]').attr('checked', 'checked');")* On Thu, Nov 7, 2013 at 9:04 AM, Mihir Dhandhusaria

Re: [wtr-general] Running Test on Multiple Browser

2013-09-23 Thread Ankita
try using browser = [:firefox,:chrome,:safari] browser.each do |browser| Before do $browser = Watir::Browser.new browser end end On Mon, Sep 23, 2013 at 11:44 PM, Mihir Dhandhusaria wrote: > All, > > I know this is repeated question but i was not able to find solution. I > have fol

[wtr-general] Re: run test scripts on three different browsers one after another?

2013-09-19 Thread Ankita@Adslot
:chrome,:safari].each do |br| > b = Watir::Browser.new br > b.goto("google.com") > puts b.title > b.close > end > > On Wednesday, September 18, 2013 11:57:44 PM UTC-4, Ankita@Adslot wrote: >> >> Hi >> >> Just wondering if there is a

[wtr-general] run test scripts on three different browsers one after another?

2013-09-18 Thread Ankita@Adslot
Hi Just wondering if there is a way I could automate my script to run on three different browsers one after another... wanted something like Open Browser1 - firefox Run script Close Browser Open Browser2 - ie Run script Close Browser OpenBrowser3- phantomjs Run script Close Browser I k

[wtr-general] Getting JavaScript Error: "a is null" for what ever I do with watir on firefox

2013-06-03 Thread Ankita@Adslot
whatever action I try to perform with Watir-webdriver on firefox, I get JavaScript Error: "a is null" file:"file:///C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/webdriver-rb-profilecopy20120220-520-1q19c5x/extensions/fxdri...@googlecode.com/components/command_processor.js" line: 10092}]' when calling met

[wtr-general] Issue with clicking on a button which opens a on click alert - works on Firefox but not on phantom.js

2013-05-22 Thread Ankita@Adslot
Hi I have following code Login Now when you click on this login link, it opens a alert JS message having two buttons OK and Cancel.. Clicking OK will log you in. I added the code browser.element(:xpath,"//div/a[contains(.,'Login')]).when_present.click $b.alert.ok This code does works f

[wtr-general] Re: Looking for click_no_wait functionality/solution for Browser.alert

2013-05-09 Thread Ankita@Adslot
How about using browser.alert.wait_while_present this will wait for the next line of code to execute until alert goes away On Friday, May 10, 2013 5:42:54 AM UTC+10, dubsbox wrote: > > I'm testing a home-grown shopping cart application which has scenarios > where adding an item to the cart resu

[wtr-general] Re: Waitir: Ignoring modal wait dialogs during ajax call

2013-05-09 Thread Ankita@Adslot
what if you add browser.text_field(:id, "subscriber_id").wait_until_present(timeout = 100) before browser.text_field(:id, "subscriber_id").set("1") On Saturday, April 20, 2013 7:56:08 PM UTC+10, Christian Scheid wrote: Hi, > > I'm just starting to use Waitir and have the following issue:

[wtr-general] Re: Watir webdriver - How to click on last in table ?

2013-05-09 Thread Ankita@Adslot
If the number of rows is static, would make sense to use xpath and locate the last row with it and then click on image of the last row. something like b.element(:xpath,"//table[@class='rctable']/tbody/tr[15]/td[2]/img[@src=' /tracker/images/skin2/bolean.png']").click On Wednesday, May 1, 2013 1

Re: [wtr-general] Re: Watir-webdriver - Screenshots - Browser is minimised before screeshot is taken and only part of the page is saved

2013-05-08 Thread Ankita
Hi Not sure if this is something to get a screen shot.. but I tried adding a screen shot folder to the UI test folder where I put in all the tests and then adding this line to the places where I would like to get the screen shotsolves my problem broswer.driver.save_screenshot("uitest/screenshot/_

Re: [wtr-general] Re: Watir-webdriver - Screenshots - Browser is minimised before screeshot is taken and only part of the page is saved

2013-05-08 Thread Ankita
nshot/_#{Time.now.strftime('%Y-%m-%d-%H-%M-%S')}.png") Ankita Gupta Senior Test Analyst p +61 3 8695 9199 m +61 433 617 627 Adslot.com Follow Us @adslot <http://www.twitter.com/adslot> Melbourne • London • San Francisco The information transmitted may be confidential

Re: [wtr-general] I'm failing at changing the timeout length

2012-09-06 Thread Ankita Gupta
Try this if it works client = Selenium::WebDriver::Remote::Http::Default.new client.timeout = 1600 # seconds – default is 60 profile = Selenium::WebDriver::Firefox::Profile.new driver = Selenium::WebDriver.for(:ff, {:http_client => client, :profile => profile}) b = Wati

Re: [wtr-general] Re: Windows Authentication issues/ and testing permissions

2012-09-05 Thread ankita bansal
Try this browser = watir::Browser.new :ff browser.goto"http://username:password@yoururl"; This one worked for me so hoping it works for you as well On Wed, Sep 5, 2012 at 6:23 AM, kloppet wrote: > Hello, > > I'm running into the exact same problem. Did you ever find a solution for > this? >

Re: [wtr-general] Re: Browser.goto command is not working

2012-09-04 Thread ankita bansal
It should be require 'watir-webdriver' instead if require 'watir-browser' On Tue, Sep 4, 2012 at 12:13 PM, Joe Fleck wrote: > Hi Pri, > > I am so very sorry. One of my lines is incorrect. > > require 'watir-webdriver' not 'watir-browser' > > * require 'rubygems' > require 'watir-webdriver' > br

[wtr-general] Re: Problem with changing the slider position

2012-04-17 Thread Ankita Gupta
cute_script)  that fires on mouseup, feeding it the required > parameters to cause the slider to move where you want it to > > > > > > > > On Monday, April 16, 2012 5:52:12 PM UTC-7, Ankita Gupta wrote: > > > I have asked the developer, he said I need to use Mo

[wtr-general] Re: Problem with changing the slider position

2012-04-16 Thread Ankita Gupta
ere client side code you could execute to make it move where you want > it to. > > ultimately this kind of thing tends to become a testability issue > > > > > > > > On Sunday, April 15, 2012 5:05:06 PM UTC-7, Ankita Gupta wrote: > > > Thanks for your reply C

[wtr-general] Re: Problem with changing the slider position

2012-04-15 Thread Ankita Gupta
he answer to this question works for you   > http://stackoverflow.com/q/8151911/409820 > > > > > > > > On Thursday, April 12, 2012 11:14:51 PM UTC-7, Ankita Gupta wrote: > > > Hi > > > I have a slider in my application which ranges from 0% to 100%

[wtr-general] Problem with changing the slider position

2012-04-12 Thread Ankita Gupta
Hi I have a slider in my application which ranges from 0% to 100% . Below is the html for the same 0 % 100 % Now if I wanted to move the "slider-handle-min" and "slider-handle- max", how should I do that .. say I wanted to make it to move at 10% for slider-handle-min and 80% for slider-ha

[wtr-general] Re: How to run all scripts in single browser session

2012-03-18 Thread Ankita Gupta
t;new_test2.rb" end describe "Test1" do require "new_test2.rb" end after (:all) do @b.close unless @browser.nil? end end where in On Mar 19, 4:13 pm, Željko Filipin wrote: > On Sun, Mar 18, 2012 at 11:40 PM, Ankita Gupta > wrote: > > > I have 5

[wtr-general] How to run all scripts in single browser session

2012-03-18 Thread Ankita Gupta
I have 5 test scripts and I wanted to run those in single browser session but do not know how to do that. If someone could help me out would be great.. All my script has following format require 'rubygems' require 'test/unit' require 'watir-webdriver' require 'watir-webdriver/wait' class def

[wtr-general] How to run all scripts in single browser session

2012-03-18 Thread Ankita Gupta
I have 5 test scripts and I wanted to run those in single browser session but do not know how to do that. If someone could help me out would be great.. All my script has following format require 'rubygems' require 'test/unit' require 'watir-webdriver' require 'watir-webdriver/wait' class def

RE: [wtr-general] Re: putting assertion if element not present

2012-03-08 Thread Ankita Gupta
Thanks Dave This would help me a lot! Regards, Ankita Gupta (Senior Test Analyst) Adslot Pty Ltd http://www.adslot.com<http://www.adslot.com/> From: watir-general@googlegroups.com [mailto:watir-general@googlegroups.com] On Behalf Of Dave McNulla Sent: Friday, 9 March

[wtr-general] putting assertion if element not present

2012-03-07 Thread Ankita Gupta
I am using #.wait_until_present(timeout = 60) to verify the element when the page loads. Now if the page does not load then my scripts wait for 60 seconds to locate this element and after that it gives Time-out error I would like to know if there is any other way where in I could put an assertion