It's not clear what particular thing you're trying to wait for, however, 3.1d adds some convenience methods for waiting for various conditions (waitForElementClickable, waitForGridDone, etc). If you can't yet move to 3.1d, you can look at the implementations of these methods to see what JavaScript expressions you could use to check various conditions.
Announcement
Collapse
No announcement yet.
X
-
I was unable to get feedback from our Selenium tester on the editable listgrid but I am told of another possible issue with automating select item dropdowns. Please see details below.
Build: v8.2p_2012-06-06/PowerEdition Development Only (built 2012-06-06)
Steps: Click the second record in the picklist (“Class B”)
Code:isc.DynamicForm.create({ width: 500, fields: [{ name: "ct", title: "ct", type: "select", valueMap: { "AA": "Class A", "B/B": "Class B" } }] });
Code:scLocator=//FeatureExplorer[ID="featureExplorer"]/exampleViewer/exampleViewPane[Class=ExampleViewPane||index=0||length=1||classIndex=0||classLength=1]/viewContainer/child[Class=DynamicForm||index=0||length=1||classIndex=0||classLength=1]/item[name=ct||title=ct||index=0||Class=SelectItem]/pickList/body/row[ct=B%24fs%24B||1]/col[fieldName=ct||0]
If we open the smartclient console, try
Code:isc.AutoTest.getElement("//FeatureExplorer[ID=\"featureExplorer\"]/exampleViewer/exampleViewPane[Class=ExampleViewPane||index=0||length=1||classIndex=0||classLength=1]/viewContainer/child[Class=DynamicForm||index=0||length=1||classIndex=0||classLength=1]/item[name=ct||title=ct||index=0||Class=SelectItem]/pickList/body/row[ct=B%24fs%24B||1]/col[fieldName=ct||0]")
But if we try
Code:isc.AutoTest.getElement("//FeatureExplorer[ID=\"featureExplorer\"]/exampleViewer/exampleViewPane[Class=ExampleViewPane||index=0||length=1||classIndex=0||classLength=1]/viewContainer/child[Class=DynamicForm||index=0||length=1||classIndex=0||classLength=1]/item[name=ct||title=ct||index=0||Class=SelectItem]/pickList/body/row[ct=B%2fB||1]/col[fieldName=ct||0]")
Comment
-
Thanks for the clear test case. We have found and fixed the problem. The fix should show up in the next nightly build (Aug 8 or greater) (both 8.2p and 8.3d branches)
Regards
Isomorphic Software
PS: A side note: This thread is now extremely long. (Assuming this particular case is indeed resolved for you), let's consider this thread closed. If you encounter any further Selenium / AutoTest subsystem issues, let's have you open new threads to report them rather than extending this discussion any further. Thanks.Last edited by Isomorphic; 7 Aug 2012, 10:29.
Comment
-
We are now having issues with automated testcases for date fields:
The locator we recorded is scLocator=//DynamicForm[ID=\"page$content$$content$doc_dti_FMT_DTLGrid\"]/item[name=page%24content%24%24content%24dti_DF_FMT_ddMMyyyy_hhmm||title=%3Cnobr%3EDTL%20-%20dd%24fs%24MM/yyyy%20hh%3Amm%26nbsp%3B%3C/nobr%3E||value=Thu Feb 24 2011 16:38:00 GMT-0500 (Eastern Standard Time)||index=5||Class=DateItem]/item[name=dateTextField||title=dateTextField||value=24%24fs%2402%2f2011%2016%3A38||index=0||Class=TextItem]/element
For the date time element with title : “<nobr> DTL - MM/dd/yyyy hh:mm </nobr>”, Two “/” are not encoded to “%24fs%24” so the element cannot be found.
This issue can be reproduced in smartClient’s Feature Explorer (SC’s 2012-06-06/2012-09-21 build, Selenium IDE 1.9.0 and FF 12)
isc.DynamicForm.create({
ID: "dateForm",
numCols: 4,
titleOrientation: "top",
fields:[
{name:"dti_DF_FMT_MMddyyyy_hhmm", title:"<nobr> DTL - MM/dd/yyyy hh:mm </nobr>", type:"DateItem", useTextField:true}
]
});
The locator we get is “scLocator=//DynamicForm[ID="dateForm"]/item[name=dti_DF_FMT_MMddyyyy_hhmm||title=%3Cnobr%3E%20DTL%20-%20MM%24fs%24dd/yyyy%20hh%3Amm%20%3C/nobr%3E||index=0||Class=DateItem]/item[name=dateTextField||title=%3Cnobr%3E%20DTL%20-%20MM%24fs%24dd/yyyy%20hh%3Amm%20%3C/nobr%3E||index=0||Class=TextItem]/element ”.
If we try “isc.AutoTest.getElement()” with the above locator in smartclient’s console, we get “undef”. But if we replace the “/” with “%24fs%24”, and try isc.AutoTest.getElement("//DynamicForm[ID=\"dateForm\"]/item[name=dti_DF_FMT_MMddyyyy_hhmm||title=%3Cnobr%3E%20DTL%20-%20MM%24fs%24dd%24fs%24yyyy%20hh%3Amm%20%3C%24fs%24nobr%3E||index=0||Class=DateItem]/item[name=dateTextField||title=%3Cnobr%3E%20DTL%20-%20MM%24fs%24dd%24fs%24yyyy%20hh%3Amm%20%3C%24fs%24nobr%3E||index=0||Class=TextItem]/element"); the element can be found.
Comment
Comment