Q7

foreach doesn't work with same-named items.

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.3.3
  • Fix Version/s: 1.2.21, 1.3.4
  • Component/s: Runtime
  • Labels:
  • Test Mode:
    Manual

Description

If you have items distingueshed only by index, foreach loop takes only first one.

Steps to reproduce:

Have Error View with different errors (and create two or more with the same Message).
This code works ok until the second message with the same Description is met (in this case Q7 fails with "Menu can not be found"):

get-view "Error Log" | get-tree | get-items | foreach {

 select-item | get-menu "Open Log" | click
 get-editor ".log"| close
 
 }

Ticket link: http://xored.freshdesk.com/helpdesk/tickets/364

Activity

There are no comments yet on this issue.

People

Vote (0)
Watch (0)

Dates

  • Created:
    24/Jun/13 1:00 PM
    Updated:
    24/Jun/13 5:59 PM
    Resolved:
    24/Jun/13 5:59 PM