Forum Discussion

jpoulin's avatar
jpoulin
New Contributor
6 years ago

Dynamically verify object property in script via Keyword test on SFDC

Hi all -

 

I'm struggling right now to find many objects on some custom objects in Salesforce Lightning. When I use the record/playback, steps are recording, and the screenshots all look fine, but when I play back, I am unable to select certain elements. Please suggest a method to find these objects - If you need any more information, I can provide it.

 

I am recording in Chrome, is there a better browser to use?

 

For example here's an object I can't figure out out to find, so I can click it (I changed the bolded to remove a company name): Sys.Browser("chrome").Page("https://companyname.lightning.force.com/lightning/r/Contact/0033800002u4K4WAAU/view").Panel(1).Panel(0).Section(0).Panel("brandBand_1").Panel(0).Panel(0).Panel(2).Panel(0).Panel(0).Panel(1).Panel(0).Panel(0).Panel(0).Section(0).Panel(1).Panel(0).Panel(0).Panel(0).Article(0).Panel(1).Panel(0).Panel(0).Panel(0).Panel(0).Panel(2).Panel(0).Panel(0).Table(0).Cell(1, 1)

2 Replies