Just right click
[ifEmpty] and select
Add Sibling, and then put your selector on the first placeholder and
Browser.Click on the second one:
Code: Select all
Sequence.IfAny
· Select.SelectStore
· Select.SelectStore
Browser.Click
· Select.AnotherSelector
Browser.Click
The reason is not showing you any selector when there's only one placeholder is because putting a selector there would produce an invalid type:
Code: Select all
Sequence.IfAny
· Select.SelectStore
· Select.SelectStore
Browser.Click
· Select.AnotherSelector
Sequence.IfAny outputs the value produced by either
[ifAny] or
[ifEmpty], so both need to have the same data type (otherwise what would be the result type of
Sequence.IfAny?). But the type is determined by the last selector, and
Browser.Click returns a sequence of VOID, while
Select.AnotherSelector returns a sequence of strings, (you can see this if you hover over these actions). So the editor is just not letting you produce the action above because it'd have an invalid type. Since the type is determined by the last action, adding a placeholder last allows you to put any other action above (placeholders have a placeholder type, so they match any other type).