You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to test, in ASP.NET MVC project, the execution time in TestStack.Seleno , i found Stopwatch that is a c# class. Is there a specific method in TestStack.Seleno?
Also I want to add wait until in : Find.Element(By.Id("idtest")).Displayed;
How can i do it?
The text was updated successfully, but these errors were encountered:
It depends on what you are trying to test the timing of.
If you want to test a specific call then you could do something like:
varstopwatch=new Stopwatch();
stopwatch.Start();
Find.Element(By.Id("an-id"));
stopwatch.Stop();// stopwatch.Elapsed contains the elapsed time
If you want to test a whole test run you could use whatever test framework you are using (e.g. NUnit / xUnit) to hook into the start and end of each test e.g. using fixtures or [SetUp]/[TearDown] etc.
Hi,
I want to test, in ASP.NET MVC project, the execution time in TestStack.Seleno , i found Stopwatch that is a c# class. Is there a specific method in TestStack.Seleno?
Also I want to add wait until in : Find.Element(By.Id("idtest")).Displayed;
How can i do it?
The text was updated successfully, but these errors were encountered: