Click here to Skip to main content
15,042,814 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi guys,

What i want to do is, access a particular label or text box from a website, whose ID may or may not be known, and compare that value with another fixed value. Suppose that label says "OFF" , I want to keep comparing that value with off, until it becomes on and the comparator returns false. I tried using Coded UI Testing, but the problem is I'm not able to run the asserted function automatically. Say I create a windows forms project with a button, and on button click, I should be able to run this Testing function. I tried adding reference (in forms project) from the Coded UI project class using its dll, but it gave errors on building. Please suggest some method to resolve this, thanks in advance.

1 solution

if i understand you perfectly you need a background work to start on when button clicked and then check untill defined time or until your button becomes on you can do this by background worker

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900