C# element not interactable



  • I am unable to click login form element below site:

    http://www.w-trading.co.kr/member/login.php?

    I try:

    driver.FindElement(By.XPath("//*[@id='memberId']")).SendKeys("my_id");
    

    and

    driver.FindElement(By.Id("memberId")).SendKeys("my_id");
    

    but each code occur error.

    How can I solve this problem? Thanks for your watching.

    I'm using Selenium in C#.



  • Do something more advance. Use a while that will wait for element.enabled to be true Inside the while do a try catch, in this try catch you will be asking if element enabled = true

    The you do the click and then the send keys



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2