We've a form with a lot of elements in it like this, with the only unique identifier being the name attribute which is always of the form company.something
<input class="form-control" type="text" name="company.name" value="">
Both of the following attempts at selecting this text input fail
await page_c.click('input[name=company.name]')
await page_c.type('input[name=company.name]', client.companyName)
await page_c.click('input[name=company\.name]')
await page_c.type('input[name=company\.name]', client.companyName)
with the following error
Evaluation failed: DOMException: Failed to execute 'querySelector' on 'Document': 'input[name=company.name]' is not a valid selector.
Is there a way to handle elements where the name attribute had a dot or full stop in it with out rewriting the front end please? Thanks.