Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    #31
    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.

    Comment


      #32
      Ok. And can I ask again when 3.1 will be released officially? I asked in April but got no response.

      http://forums.smartclient.com/showthread.php?t=21645

      Comment


        #33
        Q3, probably August. We don't set release dates, we set quality targets and can give guidance about when we think we'll hit the targets.

        Comment


          #34
          That's fine. Just wanted an estimate - but no one ever answered me. Thanks.

          Comment


            #35
            We are also running into trouble with automating testcases for editable listgrid fields - getLocatorFormItem () does not return anything even if we wait a few seconds after the listgrid has gone into edit mode

            Comment


              #36
              Can you provide enough context for us to reproduce this?

              Comment


                #37
                It's a very simple listgrid with editable fields. We want to automate going into edit mode for a record and typing into one of the editor fields

                Comment


                  #38
                  Right - we've automated that. Let us know when you can provide steps to reproduce an issue.

                  Comment


                    #39
                    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"
                            }
                        }]
                    });
                    The locator recorded by using Selenium IDE 1.9.0 on FF 12 is:

                    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]
                    The “/” is encoded as “%24fs%24”.

                    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]")
                    it returns null which means no element found.

                    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]")
                    the correct element is found.

                    Comment


                      #40
                      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


                        #41
                        We would like to automate whether the wrapLabels property on a listgrid header has been set and is actually wrapping the labels - but we are not sure how to. Was wondering if you had any ideas on how to test this functionality using Selenium?

                        Comment


                          #42
                          Probably the best thing would be to look at button.getScrollHeight() as a means of measuring whether it's the height of one line of text or two. The height is basically the only direct way the browser tells you that text has wrapped.

                          Comment


                            #43
                            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


                              #44
                              We've made fixes to the SC 8.2p/8.3d branches to fix this which should be in the next nightly build.

                              Comment


                                #45
                                Thanks - verified fixed with build SmartClient Version: v8.2p_2012-09-25/PowerEdition Deployment (built 2012-09-25)

                                Comment

                                Working...
                                X