Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to add new row and select next dropdown
#1
Not Solved
Hello,
I would appreciate if someone can guide me in this situation.
I am suppose to add a row and from that list I am suppose to select the first drop-down and then add the next row and select the next drop-down.
Here is my code:
Code:
myframe=Browser("[DEV mode - 7.0.2.29]").Page("[DEV mode - 7.0.2.29]").Frame("top_frame_2").WebList("FNOLWizard:NewClaimWizard_Poli").GetROProperty("all items")
mytotal=Browser("[DEV mode - 7.0.2.29]").Page("[DEV mode - 7.0.2.29]").Frame("top_frame_2").WebList("FNOLWizard:NewClaimWizard_Poli").GetROProperty("items count")
myframearr = split (myframe, ";")

For i=1 to mytotal-1
mycoverag = myframearr(i)

Browser("[DEV mode - 7.0.2.29]").Page("[DEV mode - 7.0.2.29]").Frame("top_frame_18").Link("Add").Click 21,12

Browser("[DEV mode - 7.0.2.29]").Page("[DEV mode - 7.0.2.29]").Frame("top_frame_4").WebList("FNOLWizard:NewClaimWizard_Poli").Select (mycoverag)

Next

The problem is the selected drop-down always goes to the first row and not able to get the 2nd drop-down in the 2nd row.
The only change I see in the property "FNOLWizard:NewClaimWizard_Poli" is the abs_y and y property change between the two drop down position
How can I make these properties dynamic while I run the script?
Thanks
Pat
Pat
Reply
#2
Not Solved
Try the Below Code,


Code:
Set objDescription= Description.Create()
objDescription("name").value="FNOLWizard:NewClaimWizard_Poli.*"
Set weblistObjects=Browser("[DEV mode - 7.0.2.29]").Page("[DEV mode - 7.0.2.29]").Frame("top_frame_2").ChildObjects(objDescription)

Spl_myframe=split(myframe,";")
For i=0 to Ubound(Spl_myframe)
mycoverag = Spl_myframe(i)
Browser("[DEV mode - 7.0.2.29]").Page("[DEV mode - 7.0.2.29]").Frame("top_frame_*").Link("Add").Click 21,12
Set weblistObjects=Browser("[DEV mode - 7.0.2.29]").Page("[DEV mode - 7.0.2.29]").Frame("top_frame_2").ChildObjects(objDescription)
weblistObjects(i).Select (mycoverag)
Next
Reply
#3
Not Solved
Hi,

Where you want to add another Row? Its not clear.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Different Type of Dropdown Selector zunebuggy 6 3,495 05-01-2018, 06:46 PM
Last Post: zunebuggy
  DataGrid: double click on selected row robertosalemi 0 4,463 05-12-2016, 03:00 PM
Last Post: robertosalemi
  Row count is always shown as 1 Harry1999 0 2,132 04-14-2016, 11:11 PM
Last Post: Harry1999
  Not able to click text inside the grid dropdown szkapoo 6 4,728 12-20-2014, 09:43 PM
Last Post: supputuri
  Keep row number imbizile 0 2,772 09-18-2014, 03:31 AM
Last Post: imbizile

Forum Jump:


Users browsing this thread: 1 Guest(s)