Hi I tried to send javascript that look like this :
$("img[src|='']").attr('src', result.responseJSON.data);
It's to change image with null value to new value. I'm using execute script so that it looks like this :
driver.execute_script("$("img[src|='']").attr("src", result.responseJSON.data);}});")
and
driver.execute_script('$("img[src|='']").attr('src', result.responseJSON.data);}});')
but it always return an error like
or
I also signing it to a python variable and call it with execute script but no luck, any hint to fix it? Thanks in advance.
Finally I found the answer, I should put escape char before like :
and it works.