Advertisement
Guest User

DesktopWindow1

a guest
Jul 26th, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.50 KB | None | 0 0
  1. // nie znam frameworka white wiec totalna improwizacja, żeby tylko pokazać ideę
  2.  
  3. public class DesktopWindow1
  4. {
  5.     Window window1;
  6.     public DesktopWindow1(White.Application application)
  7.     {
  8.         this.window1 = application.GetWindow("window1");
  9.     }
  10.    
  11.     public void ClickButton1(){
  12.         var button1 = window1.Get(SearchCriteria.ByText("button1"));
  13.         button.CLick();
  14.     }
  15.    
  16.     public string GetTextFromTextfield1(){
  17.         var texfield = window1.Get(SearchCriteria.BySomething("asdasd"));
  18.         return texfield.Text;
  19.     }
  20.    
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement