Ask a Question

Drop Down Box is not identified in Java Based Web Application

gauravrajput
Not applicable

Drop Down Box is not identified in Java Based Web Application

Hi,



I am facing a problem related to Drop Down Box. I have an application which is developed in Java and i am using Test Complete 7.52.



There is a login screen having three components. Login name, Password and Group drop down.

As soon as i enter user name depending upon how many groups are associated with my user name same gates populated in "Groups" drop down. I have created a test script for this scenario but when i run this everytime i am geting below error



"Type    Message    Time    Link The combo box item 'SL1' not found.    17:45:05"    






My Script

Sub Test1

  Dim iexplore

  Dim panel

  Dim table

  Dim textbox

  Dim passwordBox

  Set iexplore = Aliases.IEXPLORE

  Call iexplore.ToURL("http://192.168.4.154:8080/ART_BGC/welcome.do")

  Set panel = iexplore.pageAgilisReportingTool.formLogon.table.cellLogintd.panel

  Set table = panel.table

  Set textbox = table.cell.textboxUsername

  Call textbox.Drag(44, 9, -51, -5)

  textbox.Text = "super"

  Set passwordBox = table.cell1.passwordboxPassword

  passwordBox.Click

  Call passwordBox.Drag(66, 9, -78, -2)

  passwordBox.Text = "super"

  Call panel.Click(227, 74)

  Call table.cell2.selectGroup.ClickItem("SL1")

  table.cell3.submitbuttonLogon.Click

  iexplore.pageDashboard.Wait

End Sub




Please help to solve this problem.



Gaurav


1 REPLY 1
YMinaev
Staff

Hi,



It seems that TC tries to work with the combo box that is not populated yet. Try using the WaitProperty method to wait until the wItemList property of your selectGroup combo box is populated with "*SL1*" before calling ClickItem. See the "WaitProperty Method" help topic.
------
Yuri
TestComplete Customer Care Engineer

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
cancel
Showing results for 
Search instead for 
Did you mean: