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
$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
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
>>
>&
:
>
> $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: *
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
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
: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
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
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
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
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
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:
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
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/_
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
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
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?
>
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
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
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
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%
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
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
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
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
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
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
27 matches
Mail list logo