(I got these in direct mail.)
 
This application's main Web page appears to be 455,745 characters long.
 
I open it locally, so it's not like network latency is an issue.
 
When I try to flash the first text field in it, a few seconds pass, the field turns yellow; a few more seconds pass, the field turns white; a few more seconds pass, the field turns yellow, and so on.  I suspect that this is because walking the DOM for the page takes a long time, even at speeds on the orders of gigahertz.
 
When I try to enter some text data in the fourth text field, the call to do so takes six seconds for the call to return.  I compare this to, say, the text_field on the Google home page; the response is instantaneous.
 
On your page, show_all_objects takes three seconds or so to return.   The list was so long that it scrolled out of my screen buffer at 300 lines long.  I tried 1024 lines; still scrolled off.  I tried 2048; still scrolled off.  4096 lines did the trick.  There are 809 hidden fields in the page.  Many of the destination URLs are hard-coded .js files to your desktop.
 
One of the issues related to using button(:some_symbol, some_id).click is that the tab buttons aren't buttons.  As Bret suggested, they may be accessible via cell or div or span tags, but I didn't have the patience to figure out which ones.
 
You've found a bug: the page is so complex as to be untestable with Watir.
 
---Michael B.


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Anil Kumar Das
Sent: April 19, 2006 11:53 AM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] Unable to Click on tab - any workaround??

Please find source code & snapshot of application
 
-----------------------------------------------------------

<SCRIPT language='_javascript_'>
function displayZerothTab(){
displayTab('0','11','DefaultActionTab','');}
function displayOrderCostsTab(fieldName){
displayZerothTab();
if (fieldName != null) { focusOnField(fieldName); }}
function displayFirstTab(){
displayTab('1','11','DefaultActionTab','');}
function displayPartiesTab(fieldName){
displayFirstTab();
if (fieldName != null) { focusOnField(fieldName); }}
function displaySecondTab(){
displayTab('2','11','DefaultActionTab','');}
function displayTransportationTab(fieldName){
displaySecondTab();
if (fieldName != null) { focusOnField(fieldName); }}
function displayFourthTab(){
displayTab('4','11','DefaultActionTab','');}
function displayComplianceTab(fieldName){
displayFourthTab();
if (fieldName != null) { focusOnField(fieldName); }}
function displayFifthTab(){
displayTab('5','11','FifthChild_ListTab|FifthChild_ListDvv|ListTab|ListDvv','');}
function displayHoldsTab(fieldName){
displayFifthTab();
if (fieldName != null) { focusOnField(fieldName); }}
function displaySixthTab(){
displayTab('6','11','SixthChild_ListTab|SixthChild_ListDvv|ListTab|ListDvv','');}
function displayLineItemTab(fieldName){
displaySixthTab();
if (fieldName != null) { focusOnField(fieldName); }}
function displaySeventhTab(){
displayTab('7','11','SeventhChild_ListTab|SeventhChild_ListDvv|ListTab|ListDvv','');}
function displayOrderLineHoldList(fieldName){
displaySeventhTab();
if (fieldName != null) { focusOnField(fieldName); }}
function displayEighthTab(){
displayTab('8','11','EighthChild_ListTab|EighthChild_ListDvv|ListTab|ListDvv','');}
function displayChargesTab(fieldName){
displayEighthTab();
if (fieldName != null) { focusOnField(fieldName); }}
function displayNinthTab(){
displayTab('9','11','NinthChild_ListTab|NinthChild_ListDvv|ListTab|ListDvv','');}
function displayWorkflow(fieldName){
displayNinthTab();
if (fieldName != null) { focusOnField(fieldName); }}
function displayTenthTab(){
displayTab('10','11','DefaultActionTab','');}
function displayMiscellaneous(fieldName){
displayTenthTab();
if (fieldName != null) { focusOnField(fieldName); }}
function getAllAssociatedTabs(){
 return '|DefaultActionTab|DefaultActionTab|DefaultActionTab|DefaultActionTab|DefaultActionTab|FifthChild_ListTab|FifthChild_QueryTab|FifthChild_ListDvv|FifthChild_QueryDvv|ListTab|ListDvv|SixthChild_ListTab|SixthChild_QueryTab|SixthChild_ListDvv|SixthChild_QueryDvv|ListTab|ListDvv|SeventhChild_ListTab|SeventhChild_QueryTab|SeventhChild_ListDvv|SeventhChild_QueryDvv|ListTab|ListDvv|EighthChild_ListTab|EighthChild_QueryTab|EighthChild_ListDvv|EighthChild_QueryDvv|ListTab|ListDvv|NinthChild_ListTab|NinthChild_QueryTab|NinthChild_ListDvv|NinthChild_QueryDvv|ListTab|ListDvv|DefaultActionTab'; }
</SCRIPT>
--------------------------------------------------------------------------------------------------

 
On 4/18/06, Michael Bolton <[EMAIL PROTECTED]> wrote:
I can't see how the empty double quotes are helping matters; you're not telling Watir which tabs you want to click (or you're telling it to click a tab with no name).  The absence of the actual source code on which you're trying to work doesn't help either; you're not telling us the HTML that you're targeting (or you're asking us to solve a problem with no data).  There's a pattern here.  Tell Watir which tab you want to click, or show us the HTML source code that you'd like analyzed, and things might get better.
 
---Michael B.
 
 
 


From: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED]] On Behalf Of Anil Kumar Das
Sent: April 18, 2006 4:17 PM
To: wtr-general@rubyforge.org
Subject: [Wtr-general] Unable to Click on tab - any workaround??

 

I have a web application for SALES ORDER Module....

-------------------------------------
Order Detail | Parties |Line Items
-------------------------------------
Onclick of order detail application opens 10-20 fields to add order information, party tab shows 10-20 fields to enter party information and Line Items shows fields to enter product details

When I saw source code of this web page I found  ..
displayZerothTab,displayFirstTab,displaySecondTab were the variables which takes values of onClick from user action

I tried all possible following combination but couldn`t solve this issue
# $ie.link(:url, "").click
# $ie.button(:name, "").click
$ie.image(:src, "").click
$ie.link(:text, "").click
$ie.image(:text, "").click
$ie.link(:scr,"").click
$ie.link(:url, "").click
$ie.attach(:title,"").click

with displaySecondTab & Line Items (lebal of this tab)

I was wondering if there is any workaround for clicking "Tab" like button,image,url etc in watir??
Waiting for reply


_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general




--
-----------------------------------------------------------------
Diamond was also an ordinary coal before it passed burning tests..!
Some goals are so worthy it's glorious even to  fail...!!
--------------------------------------------------------------------
Regards,
Anil Kumar Das
_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to