← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #220471]: Sikuli:Issue while selecting Dropdown value with text

 

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.