I'm running some acceptable tests (C #) with the Selenium WebDrive and the following code Is:
var link = _webDriver.FindElement (By.LinkText ("Manage Service")); Link.Click ();
On the navigated page, I'm trying to target this anchor:
& lt; A onclick = "doEdit (this, 73332)" href = "javascript: zero (0);" & Gt; & Lt; Span & gt; Manage services & lt; / Span & gt; & Lt; / A & gt;
But due to selenium the test is failing that the anchor tag is not available. I was under the assumption that Selenium is capable of handling the above scenario.
I also tried By.PartialLinkText ()
but did not get it again!
Why is no link found?
The reason for this was not because the previous steps were not working properly.
What do I have in my trial:
When I go to the 'service' page for 'organization' and I as an ODi editor and the site On the page I was back to that and I click on the 'Manage Service' link.
Not enough time to enter the site stage was given so I did it 2 Asked for seconds to wait and then move on to the next step.
Thens.WaitForSecond (2);
Now finds it without any problem.
Thanks
No comments:
Post a Comment