cancel
Showing results for 
Search instead for 
Did you mean: 

Salesforce Lightning Experience

TomBlackburn1
Level 7
If anyone is familiar with automated Salesforce I require some assistance. I've developed some automations on Salesforce before using the classic view with no problem, however when using the lightning view I am struggling with selecting an item from a combo box. This is because the combo box, isn't a combo box and is an Anchor tag. New 'Select Item' isn't working as you can imagine. I can write to this stage which visually looks like I have selected the item, however it hasn't selected the item in the background. Any ideas? Is there any documentation around the 'Insert JavaScript Fragment' or 'Invoke Javascript', Could these actions help to resolve this problem? Thanks Tom
2 REPLIES 2

TomBlackburn1
Level 7
Ok, so Insert JavaScript fragment works. I've change the value of the anchor using the below: ""document.querySelector('[aria-label="" & Chr(34) & ""Status"" & Chr(34) & ""]').innerHTML=""& Chr(34) & ""On Hold"" & Chr(34) & "";"" However when I save the case it doesn't register and it remains as the old selected value

Denis__Dennehy
Level 15
There are some techniques for Combo boxes described in the Surface Automation training. I have experienced it before where a combo box is actionally a bespoke combination of seperate button and list elements - and requires the sending of keystrokes or mouse clicks to work (the underlying bespoke element is waiting for an event other then text changed - it may require some experimentation).