[wtr-general] Re: Problems using visible

2008-10-29 Thread Tony
ahh ... forgot about the visibility attribute. :) The below is the updated code def visible? jssh_command = var val = 'true'; var str = ''; var obj = #{element_object}; while (obj != null) { try { str = document.defaultView.getComputedStyle(obj,null).visibility; if (str=='hidden') { val =

[wtr-general] Re: How to access a child object

2008-10-29 Thread bugs apple
Hi, lanok and all In order to test on this method, I have appended this html code on Web page Object id=flexapp, onClick = javascript:alert('This is an alert box'); click me br And then, i execute the watir code ie.object(:id, 'flexApp').click, the stdout throw an exception like this,

[wtr-general] Re: Three Questiong for Watir developers

2008-10-29 Thread bugs apple
Sorry for confusing, The IE.each was fail , when the IE was called as internet explorer for window.path since window.path =~ /Internet Explorer/ is not treated the case sentive. I changed it as (File.basename(window.fullname).downcase =~ /iexplore.exe/ instead of the former. I want to suggest

[wtr-general] Re: Problems using visible

2008-10-29 Thread Tony
Was running the tests for some time .. and suddenly i started getting wrong results for visible. Look like the #{element_object} was returning null sometimes. Dont know why Started working after adding assert_exists Heres the updated code - class Element def visible? assert_exists

[wtr-general] Watir and TeamCity

2008-10-29 Thread al3kc
Did anyone try to integrate Watir scripts with TeamCity continuous build system? Is there way TeamCity to kick off Watir scripts automatically? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To

[wtr-general] Re: Watir and TeamCity

2008-10-29 Thread aidy lewis
2008/10/29 al3kc [EMAIL PROTECTED]: Did anyone try to integrate Watir scripts with TeamCity continuous build system? Is there way TeamCity to kick off Watir scripts automatically? 1) Must run from interactive session 2) Team city rake runner is experimental 3) Fair a bit of setup (FireWatir,

[wtr-general] Re: Problems using visible

2008-10-29 Thread Bret Pettichord
I opened up a ticket with your suggestion. Would you mind updating it with your latest code? http://jira.openqa.org/browse/WTR-262 Tony wrote: Was running the tests for some time .. and suddenly i started getting wrong results for visible. Look like the #{element_object} was returning null

[wtr-general] Re: Problems using visible

2008-10-29 Thread Paul Rogers
for people in the future searching the archives, its also worth noting that visible? has some other problems. The app i work on 'hides' stuff from the user by moving it to coordinates -1000, -1000. THis way the thing is still in the dom, and can be made to appear quicker by changing its

[wtr-general] Watir does not work with Orkut JS hacks

2008-10-29 Thread sergio . soujava
Here is a simple source code to log into orkut. You simply cannot find any links or anything because the document retains the JavaScript code, not the actual JavaScript result. See ie.html below to understand what I am talking about. Is there anyway to make the Watir document gets updated

[wtr-general] Re: Watir does not work with Orkut JS hacks

2008-10-29 Thread Sergio Oliveira
To make my point more clear, look what show_all_objects is printing: ---Objects in page - image/x-icon id= text/javascript id= src= text/css id= text/javascript id= src= http://img1.orkut.com/js/gen/common040.js text/javascript

[wtr-general] Re: Watir does not work with Orkut JS hacks

2008-10-29 Thread Jared Quinert
You might be able to get something done by accessing the ie document directly. I have some examples here: http://www.software-testing.com.au/blog/index.php?itemid=49 Have you tried any other tools on your app? This may be as much a lesson in testability as a tooling problem :-( Jared

[wtr-general] Re: Watir does not work with Orkut JS hacks

2008-10-29 Thread Sergio Oliveira
Thanks for your help, Jared! I did some progress as well. I think we are missing an important feature in Watir. The problem is that Orkut is dynamically creating an IFRAME. I was able to get the document (WIN32OLE) for this iframe. Now comes the missing feature: How do I switch the document

[wtr-general] Re: Watir does not work with Orkut JS hacks

2008-10-29 Thread wesley chen
You just need use focus, such as: ie.frame(:id, //).document.body.focus ie.send_keys(...) Wesley Man should be hard to himself, but tolerant to others. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General