@Russ_Thomas I used WaitForElementPresent and WaitForElementClickable but it did not recognise the xpath even if the same xpath is working well in chrome browser. I even used waitForPageload() but it failed.
I changed the xpath to /html/body/div[3]/div[2]/div/div/div/div[2]/div[2]/div/form/div[2]/div/div[1]/textarea then it worked in headless but this one is too nested and can break my test in the long run.
I still want to use //[@id=‘product_designation’] as the xpath.
If i try to use //[@name=‘product[designation]’] as well its unable to set the text.
Thanks