c# - How to type text into hidden fields in .net using selenium and chrome driver -


i getting error while entering text hidden fields using .sendkeys() in web automation using selenium , chrome driver.

i got 1 similar question here, not getting how implement in .net

how ?

i using vb.net c# ok me.

as far know, have use ijsexecutor. see example below:

string script = "arguments[0].setattribute('value', arguments[1]);" iwebelement thehiddenfield = driver.findelement(by.id("the-hidden-field")); ((ijavascriptexecutor)driver).executescript(script, thehiddenfield, "here new value"); 

Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -