Hi
I am trying a scenario, where the object click results in a pop up window so
it hangs until the popup is handled.
so i am trying something like this:
begin
Timeout::timeout(30)
{
obj.click
}
rescue Exception = e
message=e
end
So ideally this should time out the code in the block and come
On Sun, Nov 1, 2009 at 11:20 PM, Nigel nigel.hen...@gmail.com wrote:
Or you can try using a Watir recorder
If you are new to Watir, I would highly recommend reading some
documentation, and not using recorder until you understand Watir api.
http://wiki.openqa.org/display/WTR/Quick+Start
1. I am using Firewatir to work on Firefox 3.5, coz somehow my test runs
get stuck on FF 3.0 i dont know why
This should not happen. Can you let me know what is not working?
2. I need to use auto it directly as some popups come which's title i dont
know before han so i need to use
Will it support using Regular Expressions?
I tried it wasn't working for me so thats why switched to Auto it
--
Pallavi.
On Mon, Nov 2, 2009 at 4:15 PM, Angrez Singh ang...@gmail.com wrote:
1. I am using Firewatir to work on Firefox 3.5, coz somehow my test runs
get stuck on FF 3.0 i dont
Use #click_no_wait instead.
Jarmo
On Nov 2, 11:29 am, Pallavi Sharma write2pall...@gmail.com wrote:
Hi
I am trying a scenario, where the object click results in a pop up window so
it hangs until the popup is handled.
so i am trying something like this:
begin
Timeout::timeout(30)
{
1. I am using Firewatir to work on Firefox 3.5, coz somehow my test runs
get stuck on FF 3.0 i dont know why
This should not happen. Can you let me know what is not working?
I exactly dont know Angrez but the code just hangs in there, but this is not
an issue with 3.5.
Can you tell me how
Why will .Click Fail? Can you tell me that please?
--
Pallavi.
On Mon, Nov 2, 2009 at 5:12 PM, Jarmo Pertman jarm...@gmail.com wrote:
Use #click_no_wait instead.
Jarmo
On Nov 2, 11:29 am, Pallavi Sharma write2pall...@gmail.com wrote:
Hi
I am trying a scenario, where the object click
Also click_no_wait doesn't work in the FW i am building. Somehow the
spawining of the ruby process just highlights the object but doesn't click.
On Mon, Nov 2, 2009 at 5:14 PM, Pallavi Sharma write2pall...@gmail.comwrote:
Why will .Click Fail? Can you tell me that please?
--
Pallavi.
On
If you post the HTML code along with ruby code it would be helpful. No one
yet knows what kind of pop up you are talking about. Your HTML code shows
just one button clicking on which nothing happens.
Thanks,
Angrez
On Mon, Nov 2, 2009 at 5:13 PM, Pallavi Sharma write2pall...@gmail.comwrote:
Angrez
I have attached both the html page and auto it code, and on clicking the
button a popup window appears and on clicking on the popup nothing happens,
whether you click ok or cancel
The ruby code for this is not working with Regular Expression Angrez. That
is why i switched to Auto it.
But
The Ruby Code:
# Function to look for popups
def check_for_popups
autoit = WIN32OLE.new('AutoItX3.Control')
#autoit.Opt(WinTitleMatchMode, 4)
#
# Do forever - assumes popups could occur anywhere/anytime in your
application.
loop do
# Look for window with given title.
On Fri, Oct 30, 2009 at 8:28 PM, Bret Pettichord b...@pettichord.com
wrote:
Good suggestion. I just set up a login for that site and will start
spending more time there.
Since three of four* top posters to this group (
http://groups.google.com/group/watir-general/about) think moving to Stack
Visit the ROO group
http://groups.google.com/group/ruby-roo?hl=en
They have a nice plugin
On Oct 30, 10:33 am, Anna Gabutero a...@lavabit.com wrote:
On Fri, Oct 30, 2009 at 02:18:58AM -0700, Anuradha wrote:
How to pass data from Open office org sheet to a application..Need
clear
Charley Baker and I talk with Tom Copeland (programmer for InfoEther, lead
developer of SafariWatir, system administrator of RubyForge.org) about
SafariWatir, watirspec, RubyForge.org, Gemcutter, GitHub, other podcasts Tom
recorded, how to raise 7 kids…
While we were recording the podcast Tom
Can't see your HTML code file? Can you attache that again?
- Angrez
On Mon, Nov 2, 2009 at 5:40 PM, Pallavi Sharma write2pall...@gmail.comwrote:
The Ruby Code:
# Function to look for popups
def check_for_popups
autoit = WIN32OLE.new('AutoItX3.Control')
Thank you. I will vote for that ticket.
QAguy
On Oct 30, 5:33 am, Željko Filipin zeljko.fili...@wa-research.ch
wrote:
On Fri, Oct 30, 2009 at 11:27 AM, Željko Filipin
zeljko.fili...@wa-research.ch wrote:
You can report the bug:
No need for that, it is already reported:
BTW I tried browser.link(:text, Sign Out).click but I get a
response that safariwatir could not find a link element with text Sign
Out. The element is as follows:
div class=sign_out
a id=signout_link class=ga_trackable href=/user/logoutSign
Out/a
/div
So I tried:
@browser.div(:text, Sign
All,
I would like to fetch the record from excel through watir in a regular
interval of time. For example i have 400 user names which needs to be
entered on a web application one by one. My web-app will stop
responding after a certain time period/certain records. we need to
close the script or
On Mon, Nov 2, 2009 at 6:05 PM, QAguy qablogm...@gmail.com wrote:
BTW I tried browser.link(:text, Sign Out).click but I get a
response that safariwatir could not find a link element with text Sign
Out.
Which version of SafariWatir do you have?
What do you get from this?
Have a look:
http://watirmelon.com/2009/09/08/creating-a-watir-framework-using-test-unit-and-roo/
http://itest2.com/articles/2009/11/03/data-driven-testing-in-itest/
On Oct 30, 7:18 pm, Anuradha anuradhar2...@gmail.com wrote:
How to pass data from Open office org sheet to a application..Need
http://itest2.com/articles/2009/11/03/data-driven-testing-in-itest/
You can put sleep and reload in the loop, like below
excel_sheet = Spreadsheet.open(C:\\user.xls).worksheet(0) # 1st
sheet
excel_sheet.each_with_index do |row, idx|
next if idx == 0 # ignore first row
username =
I guess for now, I would say that people should be told that they can
post questions in either location. There are very few people actually
answering watir questions on stackoverflow right now. Basically it is
just you Zeljko, although I did see Mark A make an appearance.
I would like to revise
Hi Angrez
The html page:
html
head
titleMy page/title
script type=text/javascript
function show_confirm()
{
var r=confirm(Press a button);
if (r==true)
{
}
else
{
}
}
/script
/head
body
input type=button onclick=show_confirm() value=Show confirm box /
/body
/html
Thanks for looking
Hi
Can anyone here please tell me why the Timeout::timeout() will not work with
.click if the it causes opening of a pop up.
Is there any other solution i can try with this?
I tried SystemTimer and Terminator but they also didn't work.
I looked into the code and there is a statement called
I found the part of the solution here
http://groups.google.com/group/watir-general/browse_thread/thread/5668eca30fdf784/940aa7f7be28c75d?lnk=gstq=meta#940aa7f7be28c75dbut
it still did not solve my problem.
*sample html*
html
head
titletitle/title
meta content=title name=keywords/
meta
Hi Marlon,
If you want* pure RUBY code* for that purpose then please try with this
http://bit.ly/4mDHoJ
Thanks
On Tue, Nov 3, 2009 at 9:21 AM, Marlon marlonmoja...@gmail.com wrote:
I found the part of the solution here
If you are using the latest Firewatir version i.e. 1.6.5rc2 you can do
something like this:
browser.button(:id, [button
id]).click_no_wait()
browser.click_jspopup_button(OK) // If you want to click ok
or
browser.click_jspopup_button(CANCEL) // If you want to click cancel
Let me know if this
After I installed the gems according to the instructions, the Chinese
characters getting from and posting to web pages are messed up.
On Oct 23, 5:14 am, Charley Baker charley.ba...@gmail.com wrote:
Hi all,
We have a new version of Watir for testing, 1.6.5.rc2.
the release is here with
Hi Raveendran,
I was able to get what I want. For now im going to use it.
thanks lot for helping!
marlon
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Watir General group.
To post to this group, send email
29 matches
Mail list logo