Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I will like to mention, when I switch the driver to Chrome or even Firefox, that particular step passed. so the issue is only occurring when I run my test on IE
Thanks a lot @ITguy! I gave the form ID and ran some test, still nothing is getting hit. I even tried to hit just the form ID on the top and it still fails. One other thing I think may be the issue is that the site contains javascripts. Is there a different way to check if Element is visible using javascript?
Thanks a lot @the_coder! I tried the xpath you provided and I noticed two things, when I run the test with or without debugger, it fails but when I put a breakpoint in the "IsNewForm" method and use f11 to step into it, the element gets hit and the test pass. One other thing I think may be the issue is that the site contains javascripts. Is there a different way to check if Element is visible using javascript?
Thanks Koen for the response. Ok I understand the part that you can have this implemented in the gherkin example table, but my problem is I don't know how to do the USER switch between 2 logins in the C# part of the code. Can you please give me an example on how to handle the switch in the C#? I saw an example online that uses 'For Each' but the example also uses "TableNode" which I don't know how to implement in C#