HI,
I want to set following checkbox but it is
shadowed by Label For element. So i can't execute b.checkbox().set
method... it is giving an error. How do i set checbox in this case?
input type=checkbox id=DailySummaryCompleted class=checkbox col-lg-1
ng-pristine ng-untouched ng-valid
I further checked, basically when click on cell .. it rendered as textarea
as following
so i got it working with following line
@browser.textarea(:index,0).when_present.set 'test'
Cheers
[image: Inline image 1]
On Wed, Jan 7, 2015 at 5:16 PM, Sohail Mirza mrz...@gmail.com wrote:
Hi Joe
On Tue, Jan 6, 2015 at 9:47 AM, Sohail Mirza mrz...@gmail.com wrote:
Hi Joe,
It worked actually.
thanks you.
On Tue, Jan 6, 2015 at 6:44 PM, Joe Fleck joeflec...@gmail.com wrote:
Hi Sohail,
Have you tried anything?
This might work:
@browser.div(:class='ng-scope ngCellElement').send_keys
Hi,
The following code is rendered for a text box. It does not have Input tag
and it does not have type attribute.. How can i set value in it?
div ng-cell-has-focus= ng-dblclick=true amp;amp; editCell()
class=ng-scope ngCellElement tabindex=0
Any help please?
--
--
Before posting, please read
Hi Joe,
It worked actually.
thanks you.
On Tue, Jan 6, 2015 at 6:44 PM, Joe Fleck joeflec...@gmail.com wrote:
Hi Sohail,
Have you tried anything?
This might work:
@browser.div(:class='ng-scope ngCellElement').send_keys Test
Thank you,
Joe
On Tue, Jan 6, 2015 at 9:18 AM, Sohail Mirza
, 2015 at 10:23 AM, Sohail Mirza mrz...@gmail.com wrote:
Hi Joe
I am getting the following error.
*Code:*
$rowCount = @browser.table(:class, 'table table-hover table-condensed
table-bordered table-striped ng-scope ng-table').rows.size
@browser.text_field(:xpath,'/html/body/div/div[4]/div/div[2
/ManageConsumables.rb:23:in `/^I enter
required
information$/'
features\ManageConsumables.feature:4:in `When I enter required
information
On Wed, Dec 31, 2014 at 9:14 PM, Joe Fleck joeflec...@gmail.com wrote:
Hi,
What is the error you are receiving?
Joe
On Dec 31, 2014 4:08 AM, Sohail Mirza mrz
Can we use variable for XPath property?
The following line of codes failing
$rowCount = @browser.table(:class, 'table table-hover table-condensed
table-bordered table-striped ng-scope ng-table').rows.size
Hi,
I am able to resolve it using following two lines.
@browser.span(:text,'').click // Click on list to expand it.
@browser.div(:text,'').click //click on element to select it.
I hope this is nice way.
Any suggestion from experts?
On Mon, Dec 29, 2014 at 3:32 PM, Sohail Mirza mrz
Hi,
I am trying to set the checkbox. The rendered htmkl code is as following.
class should not an option since there are 5 other checkboxed with same
class property value.
Can i set this checkbox using span element?
Any suggestions please.
span data-ng-class=node.selected
Hi,
I am trying to perform click event on the following span element but
something not working for me.
ul class=ng-scope data-ng-repeat=module in leftSideNavigation
li data-ng-click=selectedNode(module)
a href=/home ui-sref=home
* span class=ng-binding*
* Mobile amp; Accessories*
* /span*
/a
/li
Well, i got solution using following line of code.
browser.link(:text = *Mobile Accessories*).click
Just wanted to ask, is it the only way or could be some other nice way?
Thanks
On Fri, Nov 28, 2014 at 5:13 AM, Sohail Mirza mrz...@gmail.com wrote:
Hi,
I am trying to perform click event
Hi,
Is there any method available using which i can check whether the textarea
is enabled or disabled.
i checked the following
http://rdoc.info/gems/watir-webdriver/Watir/TextArea
but could not find enabled? method.
Please suggest
--
--
Before posting, please read http://watir.com/support.
okay i try it.
but question...i am asking for text_area but you mentioned for text_field.
if it will work then how because both are difference objects.
On Wed, Jun 19, 2013 at 3:31 PM, Željko Filipin zeljko.fili...@gmail.comwrote:
On Wed, Jun 19, 2013 at 1:20 PM, Sohail Mirza mrz
...@gmail.comwrote:
On Wed, Jun 19, 2013 at 1:41 PM, Sohail Mirza mrz...@gmail.com wrote:
i am asking for text_area but you mentioned for text_field. if it will
work then how because both are difference objects.
That was my mistake, I did not notice you were talking about text area
=0.8,platform=Windows NT
6.1
x86_64)}
irb(main):004:0
On Thu, May 9, 2013 at 12:47 PM, Sohail Mirza mrz...@gmail.com wrote:
Hi,
I am trying to install Watir-Webdriver and try to work on it but getting
the following error :(
[image: Inline image 1]
Any comments please.
--
--
Before
I do understand the error message hopefully in correct way.
but when i run gem update command it says me that Nothing to update.
All gems are updated.
I have ruby 1.9.3. 3p392
what i am missing here
On Thu, May 9, 2013 at 2:05 PM, Sohail Mirza mrz...@gmail.com wrote:
Zelijko, noted your
zeljko.fili...@gmail.comwrote:
On Thu, May 9, 2013 at 12:05 PM, Sohail Mirza mrz...@gmail.com wrote:
You are using an old or stdlib version of json gem
Please upgrade to the recent version by adding this to your Gemfile:
gem 'json', '~ 1.7.7'
I think you should explicitly install json gem
Hi,
In the following rendered HTML code, can i use Value attribute to set value
into the user name field? like as follow
*Browser.text_field(:value,UserName).set Hi*
input type=text data-bind=value: UserName class=input-block-level
placeholder=User Name
kindly advise.
Thanks
--
--
Before
at 2:19 PM, Sohail Mirza mrz...@gmail.com wrote:
i am trying with load 'Test.rb' but it is not loading
My mind reading machine is not working at the moment. Could you provide
more information, like the code that you have tried and error messages?
Željko
--
https://leanpub.com/watirbook
, Sohail Mirza mrz...@gmail.com wrote:
i meant how can i call a script into another script.
require is what you are looking for:
http://rubylearning.com/satishtalim/including_other_files_in_ruby.html
Željko
--
--
Before posting, please read http://watir.com/support. In short: search
before
Hi Chuck van der Linden,
*
*
I have question for you *How would rate Watir Test-Unit framework? *In
your detailed reply you did not mention Test_Unit Framework? you dont like
or it has limitation..
i am asking so because i am currently using it and found it good.
please comment.
*
*
Thanks,
*
*
On
Hi All,
Thanks for the comments. However, i have solved the problem as follow
*@browser.a(:text,Customer Lines).fire_event(onclick)*
it is perfectly running for me.
But one thing which i am still figuring out is why it did not work for
simple Click method and why it worked with
, Sohail Mirza mrz...@gmail.com wrote:
Finally i am able to resolve it but it works sometime and sometime it
does not work
*@browser.input(:value=Create New Customer).click*
please advise another convenient way to handle it?
Thanks,
On Tue, Mar 19, 2013 at 6:36 PM, Sohail Mirza mrz
Hi,
I am curious to know about Logger.rb.
Can i use it in watir webdriver?
Where i can find more about it?
Can someone share simple example?
Thanks
--
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
watir-general@googlegroups.com
Are you talking about the following home page?
http://wiki.openqa.org/display/WTR/Example+Logging
please share logger home page link.
Thanks
On Wed, Mar 20, 2013 at 1:41 PM, Željko Filipin zeljko.fili...@gmail.comwrote:
On Wed, Mar 20, 2013 at 10:39 AM, Sohail Mirza mrz...@gmail.com wrote:
I
:
On Wed, Mar 20, 2013 at 10:49 AM, Sohail Mirza mrz...@gmail.com wrote:
Are you talking about the following home page?
http://wiki.openqa.org/display/WTR/Example+Logging
I am not talking about anything. I have asked what _you_ are talking
about. :)
The page that you have linked to was last
/ outputted / logged as
Opening browser page with specified URL
I hope you get my point?
Thanks
On Wed, Mar 20, 2013 at 2:04 PM, Željko Filipin zeljko.fili...@gmail.comwrote:
On Wed, Mar 20, 2013 at 11:03 AM, Sohail Mirza mrz...@gmail.com wrote:
Can you suggest any other way around for logging
Hi,
i am facing problem in automating the following HTML code
a href=#divCustomerLinesTab data-toggle=tabCustomer Linesspan
class=tabLoading id=divCustomerLinesTabTab style=display:
inline;/span/a
I am using the following lines but NOTHING IS working for me :( please help
advise
Finally i am able to resolve it but it works sometime and sometime it does
not work
*@browser.input(:value=Create New Customer).click*
please advise another convenient way to handle it?
Thanks,
On Tue, Mar 19, 2013 at 6:36 PM, Sohail Mirza mrz...@gmail.com wrote:
No Success Alex. Sorry
Hi,
i would like to know how to perform button click from nested div's when it
is nested upto seventh div or more
*input id=btnAddNewCustomer type=submit class=ui-button Action
value=Create New Customer onclick=createNewCustomer()*
*
*
Currently, the script execution neither gives an error nor
No Success Alex. Sorry
On Tue, Mar 19, 2013 at 5:22 PM, Alex Shtayer ashta...@gmail.com wrote:
I don't think that problem in fact that div is nested, but more that click
event is not working as it should
Try
browser.button(:id, *btnAddNewCustomer*).fire_event(onclick)
or
Hi,
Can someone explain how to disable Java Script Alert message during watir
script execution?
Thanks
--
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
watir-general@googlegroups.com
http://groups.google.com/group/watir-general
This thread is closed. The information is available at following link
*http://watirwebdriver.com/javascript-dialogs/*
On Tue, Mar 19, 2013 at 6:42 PM, Sohail Mirza mrz...@gmail.com wrote:
Hi,
Can someone explain how to disable Java Script Alert message during watir
script execution?
Thanks
Hi,
I am getting this error Element is not clickable at point.
The script is to click Button which is showing but under another container
.
i am using watir-webdriver
kindly comment as i am struck
--
--
Before posting, please read http://watir.com/support. In short: search before
you
Hi
strange behavior
when web application is accessed using watir script its opening with
default zoom in (high zooom and UI looks bigger icon and buttons etc)
however if the application open normally it is opening with actual/required
zoom
Why its happening and how to stop it?
--
--
Before
hi,
how to zoom out web application using watir? my manual actions are Ctrl +
scroll down
how i can achieve this using watir-webdriver
Kindly comment. Thanks
--
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
watir-general@googlegroups.com
*i get the following error when using fire_event(onclick) *
function(){return function(){var l=this;
function m(a){var c=typeof a;if(c==object)if(a){if(a instanceof
Array)returna
rray;else if(a instanceof Object)return c;var
b=Object.prototype.toString.call(
a);if(b==[object
, Mar 18, 2013 at 9:40 AM, Sohail Mirza mrz...@gmail.com wrote:
I am getting this error Element is not clickable at point.
Please share relevant HTML and Ruby code. Full text of the error, too.
Željko
--
https://leanpub.com/watirbook
--
--
Before posting, please read http://watir.com
one more statement of error message
* An open modal dialog blocked the operation*
i guess the following line is causing the problem
@browser.alert.ok
On Mon, Mar 18, 2013 at 5:42 PM, Željko Filipin zeljko.fili...@gmail.comwrote:
On Mon, Mar 18, 2013 at 2:40 PM, Sohail Mirza mrz...@gmail.com
18, 2013 at 5:42 PM, Željko Filipin zeljko.fili...@gmail.comwrote:
On Mon, Mar 18, 2013 at 2:40 PM, Sohail Mirza mrz...@gmail.com wrote:
input id=btnAddNewCustomer type=submit class=ui-button Action
value=Create New Customer onclick=createNewCustomer()
Can you post a link to the page where
Hi,
I am trying to find the way to save an image when something fail but could
not get much stuff from google.
I am using Watir-WebDriver and needs to save an image in case failure.
Could anyone advise how to save image?
Thanks
--
--
Before posting, please read http://watir.com/support. In
i means how to save screenshot
On Sun, Mar 17, 2013 at 12:29 PM, Sohail Mirza mrz...@gmail.com wrote:
Hi,
I am trying to find the way to save an* screenshot* when something fail
but could not get much stuff from google.
I am using Watir-WebDriver and needs to save an image in case failure
4:56:52 AM UTC-7, Željko Filipin wrote:
On Wed, Mar 13, 2013 at 8:28 AM, Sohail Mirza mrz...@gmail.com wrote:
i need to create HTML reports in Watir.
Watir just drives browsers, it does not create reports. I think that
all testing frameworks (test/unit, rspec, cucumber) have reporting. I
Hi
I am trying to find out the way that *how to continue test cases execution
on error*. Right now test case execution stops as soon some error encounter
during test execution.
I am using Watir Test/Unit framework.
Any comments please?
--
--
Before posting, please read
Hi,
i need to create HTML reports in Watir.
There is one HTML Report Class which i found in google results. i wanted to
confirm is that still the only way to generate HTML reports or there are
some more good approaches to generate HTML Reports?
http://wiki.openqa.org/display/WTR/HTML+report+class
Hi,
I would like to know the specific reason for the following error which
comes when i execute the Watir Script *(Though script executed perfectly
and gives the required output)*
*[10152:11076:0218/180847:ERROR:master_preferences.cc(104)] Failed to read
master*
*_preferences file at C:\Program
Hi,
how would you automate following Javascript link in watir-webdriver?
a
href='javascript:selectDevice(122334455,12121212,#divAddCustomerLine);'Select/a
Thanks
--
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
Thanks Alex, its working with me.
On Wed, Feb 6, 2013 at 1:18 PM, Alex Shtayer ashta...@gmail.com wrote:
What do you mean by automate? How to click on the element?
You can use usual method like:
browser.link(:text, Select).click
or if due any reason click method does not work:
Hi,
i have following html code for input type *image*
*input type=image src=/MyTestDemo/Images/add.png value=Add New
Customer data-bind=visible: IsAddAllowed,click: $root.AddNewCustomer
class=ui-button*
How can i perform click event on above?
i am trying the following but failing
Hi,
I just found that Watir has the *.attach* method. The examples use IE
browser.
How do I attach to an existing browser window using *watir-webdriver*?
Thanks.
Sohail
--
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
Thanks Jim, helps a lot.
Regards,
Sohail
On Sat, Feb 2, 2013 at 8:45 PM, Jim Evans james.h.evans...@gmail.comwrote:
You don't. The WebDriver API doesn't support attaching to an existing
browser yet, so watir-webdriver can't provide this functionality either.
Additionally, a large use case
Hi,
I wanted to know that is it possible to automate Chrome using watir? i did
some google on using watir with chrome but could not find much.
Where can i find some good information about the subject?
Thanks,
Sohail
--
--
Before posting, please read http://watir.com/support. In short:
Hi,
Can i use *Test::Unit::TestCase *framework with Watir-Webdriver? if not
then can some recommend useful framework to automate Asp.net MVC
application + jquery?
Thanks,
Sohail
--
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
Hi,
I wanted to know How to run watir script on an already opened Chrome
Browser.
I dont want to open new Chrome Instance. THe web application is already
openened in Chrome and i just want to run the script.
Thanks for comments
Sohail
--
--
Before posting, please read
wrote:
Sure. They are two different things that don't interact directly with each
other.
--
*From:* Sohail Mirza mrz...@gmail.com
*To:* watir-general@googlegroups.com
*Sent:* Friday, February 1, 2013 8:12 AM
*Subject:* [wtr-general] Test::Unit::TestCase
Hi
How do i check version of my installed watir?
Thanks
--
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com
---
You
Thanks Joe,
it helped.
On Wed, Jan 30, 2013 at 10:00 PM, Joe Fleck joeflec...@gmail.com wrote:
Command line
Ruby - v
Or
Gem list
All lower case
On Jan 30, 2013 12:56 PM, Sohail Mirza mrz...@gmail.com wrote:
How do i check version of my installed watir?
Thanks
--
--
Before
Hi folks,
I need to select sub menu item. How can i automate this? I am using
Watir-Classic gem.
The view source shows following
li
a href=/MyDemoTest/Menu/LoadView?*menuItemKey=1*
onclick=ShowLoadingIndicator();Test Management/a
/li
Thanks,
--
--
Before posting, please read
.
You will need to first expose the submenu and then select the submenu item
you want.
Repost the html code here and we will be better able to help you.
Joe
On Jan 30, 2013 1:55 PM, Sohail Mirza mrz...@gmail.com wrote:
Hi folks,
I need to select sub menu item. How can i automate this? I am
Hi,
I need to test my web application in Google Chrome. My web application is
developed using MVC + Jquery technology.
Can i use Watir-Classic to automate my application in Chrome or i need to
use Watir-webdriver?
Thanks.
--
--
Before posting, please read http://watir.com/support. In short:
and then select the submenu item
you want.
Repost the html code here and we will be better able to help you.
Joe
On Jan 30, 2013 1:55 PM, Sohail Mirza mrz...@gmail.com wrote:
Hi folks,
I need to select sub menu item. How can i automate this? I am using
Watir-Classic gem.
The view source shows
(:class=potato-menu-item potato-menu-has-vertical).click
@browser.a(:text='Sub Menu 1').click
end
then call it
click_sub_menu
Hope this helps.
Joe
On Wed, Jan 30, 2013 at 2:35 PM, Sohail Mirza mrz...@gmail.com wrote:
Joe,
Are you asking for this?
i used Chrome Develope Tool
, 2013 at 2:48 PM, Sohail Mirza mrz...@gmail.com wrote:
Joe,
i tried following
@browser.li(:class=potato-menu-item potato-menu-has-vertical).click
@browser.a(:text='Sub Menu 1').click
D:/Watir/Examples/Test1.rb:4:in `main': undefined method `li' for
nil:NilClass
(NoMethodError
you initialized your browser as.
Joe
# if you have to sign in do that
On Wed, Jan 30, 2013 at 2:48 PM, Sohail Mirza mrz...@gmail.com wrote:
Joe,
i tried following
@browser.li(:class=potato-menu-item potato-menu-has-vertical).click
@browser.a(:text='Sub Menu 1').click
D:/Watir
in my script?
Do you have simple example for developing script for chrome??
Thanks
On Thu, Jan 31, 2013 at 12:05 AM, Joe Fleck joeflec...@gmail.com wrote:
No problem.
On Wed, Jan 30, 2013 at 3:04 PM, Sohail Mirza mrz...@gmail.com wrote:
Sorry my mistake here.
Sub Menu 1 was a dummy
Well the issue mentioned below has been resolved.
I just copied the chromedriver binary file at the location defined in my
Path environment variable
Thanks
On Thu, Jan 31, 2013 at 12:42 AM, Sohail Mirza mrz...@gmail.com wrote:
Joe,
i downloaded chromedriver file and extracted it.
When i run
:3:in `main'
D:\Watir\Examples[WARNING:..\..\..\..\flash\platform\pepper\pep_module.cpp(63)]
SANDBOXED
On Thu, Jan 31, 2013 at 1:13 AM, Željko Filipin zeljko.fili...@gmail.comwrote:
On Wed, Jan 30, 2013 at 8:14 PM, Sohail Mirza mrz...@gmail.com wrote:
Can i use Watir-Classic to automate my
Thanks,
how can i update selenium-webdriver gem? please
On Thu, Jan 31, 2013 at 1:27 AM, Željko Filipin zeljko.fili...@gmail.comwrote:
On Wed, Jan 30, 2013 at 10:21 PM, Sohail Mirza mrz...@gmail.com wrote:
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.27.2
You have an old
Hi,
I just wanted to know does *watir* gives us facility to handle dynamic
objects in the application?
For example i have HMTL table whose rows counts is not fixed and these rows
are created based on the search results returned.
I wanted to create script in such a way that no matters how many
Hi,
what is the purpose of adding following line in the ruby program?
Require 'rubygems'
Thanks
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
watir-general@googlegroups.com
http://groups.google.com/group/watir-general
Thanks
Does the latest version of ruby automatically do this functionality or
still we need to require it?
Thanks for your comments
On Fri, Aug 10, 2012 at 3:00 PM, Željko Filipin zel...@filipin.eu wrote:
On Fri, Aug 10, 2012 at 12:57 PM, Sohail Mirza mrz...@gmail.com wrote:
what
Hi,
I am automation a functionality in IE browser. I need to save the
screenshot of browser during script execution.
How can i do this?
Thanks
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
watir-general@googlegroups.com
Hi
I have defined Object Repository file as follow
-
*module LoginPage*
* def username_textbox*
* *
* return $ie.text_field(:id,i0116)*
* end*
*
*
* def UserPassword*
*return $ie.text_field(:id,i0118)*
* end*
*
*
* def SignIn*
*
Hi,
What are the different versions of Watir available?
i just tried following and somehow come to know that watir version 1 is
installed on my machine. Is it the latest one?
*
*
*C:\ruby -e 'require watir; puts Watir::IE::VERSION'*
*-e:1:in `main': uninitialized constant Watir::IE::VERSION
Hi,
I downloaded XLS.ZIP excel file from the
http://wiki.openqa.org/display/WTR/Excel+interface+class
i extracted this code to D: drive.
Then using command prompt, i entered ruby ruby XLS_usage_example.rb and
pressed enter...
immediately i got following error
its resolved..
I had to copy Xls file at following location
C:\Ruby193\lib\ruby\1.9.1
On Wed, Aug 1, 2012 at 10:53 PM, Sohail Mirza mrz...@gmail.com wrote:
Hi,
I downloaded XLS.ZIP excel file from the
http://wiki.openqa.org/display/WTR/Excel+interface+class
i extracted this code to D
Hi,
I tried to execute the following code but getting an error *NoMethodError:
unknown property or method: `length' HRESULT error code:0x80020006*
require watir
require test/unit
require win32ole
class TC_Login Test::Unit::TestCase
$ie = Watir::IE.new
def setup
$ie.goto(http://gmail.com;)
end
Hi,
1 - What is the difference between following two lines.
* *
*browser = Watir::Browser.new*
*ie = Watir::IE.new*
Thanks,
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
watir-general@googlegroups.com
Hi,
1 - What is the difference between following two validation methods.
* *
*Contains_Text*
*Text_Included*
Thanks
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
watir-general@googlegroups.com
, 2012 at 9:20 PM, Sohail Mirza mrz...@gmail.com wrote:
1 - What is the difference between following two validation methods.
Contains_Text
Text_Included
I think both are deprecated.
Željko
--
filipin.eu
--
Before posting, please read http://watir.com/support. In short: search
before
Hi,
I just wanted to know which is the best Watir Framework for automating web
application? Any example available on github?
Which is the best IDE for Watir script development?
Thanks
Sohail
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
at 3:11 PM, Sohail Mirza mrz...@gmail.com wrote:
I just wanted to know which is the best Watir Framework for automating
web application? Any example available on github?
I could not guarantee that it is the best, but I prefer page-object gem:
https://github.com/cheezy/page-object
Which
(should contains data file)
Reports (should contains reports)
Run.rb to run all the file
Thanks
On Sat, Jul 28, 2012 at 5:31 PM, Željko Filipin zel...@filipin.eu wrote:
On Sat, Jul 28, 2012 at 3:30 PM, Sohail Mirza mrz...@gmail.com wrote:
Could you more explain page-object gem? How to setup
Hi All,
Can anyone explain me below points
*How to installed Watir Recorder ++?*
*What is the difference between WatiR Recorder++ and WatiR Maker?*
Best Regards,
Sohail
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
You received this
85 matches
Mail list logo