Double Parameterized test object call

def static hoverOnColor(final String colorId) {
	WebUI.waitForElementPresent(findTestObject('ProductLandingPage/ColorSwatch', [('siteID'): 'coveobe9eb65f', [('buttonID'):colorId]]), 2)

I have the above mentioned method that tries to find the test object based on two dynamic parameters.

I followed the syntax from but still I am getting squiggly line on the second parameter. Is there something wrong with this syntax?

You have this:

[('siteID'): 'coveobe9eb65f', [('buttonID'):colorId]]

Try changing it to:

[('siteID'): 'coveobe9eb65f', ('buttonID'):colorId]