c# - Selenium - PhantomJS TypeError - undefined is not a constructor (evaluating '_getTagName(currWindow).toLowerCase()') string -


i create auto application testing website in csharp using selenium , phantomjs.

i have problem when try sendkeys("values") website.

<section id="login">     <form class="login">         <input type="text" id="login-username">     </form> </section> 

it throws exception:

    message "unexpected error. typeerror - undefined not constructor     (evaluating '_gettagname(currwindow).tolowercase()')" string 

my code like:

element.findelementbyid("login-username").sendkeys("user1");

i updated phantomjs latest version.

solved:

you should download phantomjs 1.9.8 @ this link. work in case.

phantom 2.1.1 or 2.0 don't work.


Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -