How can I set the id = with 'instead of' because if I try to run the script in chromeBrowser.ExecuteScriptAsync with the id="" it error, how can I do that?
html code / javascript
var x = '<label id="idteste">Testando' +
'</label></div>'
$('#labelhm p:first').html(x);
The problem is in the id="idteste" that has the "" and when put in the error #.
I have tried "+" idteste "+" which takes the error, but then the error in the script saying that the id is not valid
The script is very large and has several {} so I can not do this:
Exemplo:
chromeBrowser.ExecuteScriptAsync("id={}", "idteste");
Not even that:
chromeBrowser.ExecuteScriptAsync($"id={idteste}");
I need it to look like this: 'idtest', does anyone know a solution? Thank you.