Details |
    Last modification |
    View Log
    | RSS feed
  
  
  
     
        
        | Rev | Author | Line No. | Line | 
     
     
        
           | 396 | david | 1 | #!/bin/bash
 | 
        
           |  |  | 2 | # Scenario nominal : saisie observation avec completion commune et espece, tous champs renseignes
 | 
        
           |  |  | 3 |   | 
        
           |  |  | 4 | # Necessite xdotool >= 20090815 (commande delay)
 | 
        
           |  |  | 5 |   | 
        
           |  |  | 6 | # Todo : en faire une brique pour inclusion dans autres scenario
 | 
        
           |  |  | 7 |   | 
        
           |  |  | 8 | # Lancement Cel
 | 
        
           |  |  | 9 | firefox http://localhost/cel2/war/cel2.html
 | 
        
           |  |  | 10 | sleep 7
 | 
        
           |  |  | 11 |   | 
        
           |  |  | 12 | # Timestamps
 | 
        
           |  |  | 13 |   | 
        
           |  |  | 14 | obsid=`date +%s`
 | 
        
           |  |  | 15 |   | 
        
           |  |  | 16 | # Init
 | 
        
           |  |  | 17 | CWID=`xdotool getwindowfocus`
 | 
        
           |  |  | 18 | WID=`xdotool search "Mozilla Firefox" | head -1`
 | 
        
           |  |  | 19 | xdotool windowactivate $WID
 | 
        
           |  |  | 20 | sleep 1
 |