Question #220471 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/220471

Bindu gave more information on the question:
Also, is there any limit on the length the text that is being using in
exists("some text") function, because with the above example, if I
select the value with just "Recorded" or "One way" or "way audio",
sikuli is selecting the value in second drop down,

Please find my code for reference

Screen s= new Screen();
Region reg;
int Flag=0;             
        
     s.click("Select"); //dropdown is displayed initially as --Select--
                                
   Match header = s.find("SelectImage.png");                                    
   reg=header.below(150).left(5).right(1000);   
   reg.hover(header);
   reg.type("R"); //first character of the dropdown value that I want to select 

   do{  
        if(reg.exists("Recorded message")!= null)       //
         {              
          reg.click("Recorded message")                         
          Flag=1;
         break; 
         }
     else{                                      
        reg.type(Key.DOWN);                                     
           }                                    
      }while(Flag!=1);

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to