如何自动弹出窗口单击确定按钮?

时间:2016-12-17 10:29:27

标签: python pywinauto

如何自动弹出窗口点击按钮?我结合SWAPY和编码,但找不到必要的编码。我自动Speech Filing System Tools for Speech Research

ngOnInit() {

    componentHandler.upgradeAllRegistered();

    this.hasWhat();
    this.cartService.itemAdded$.subscribe( (id: any) => {
        this.hasWhat();
    });

    this.cartService.itemRemoved$.subscribe( (id: any) => {
        this.hasWhat();
    });

} 
hasWhat(){

    this.progressService.hasWhat().then (
        data => {


            this.hasItems = data;
            if(this.hasItems.hall==true){
                this.hasHall=true
            }
            else{
                this.hasHall=false  
            }
            if(this.hasItems.caterer==true){
                this.hasCaterer=true
            }
            else{
                this.hasCaterer=false
            }

        });
}

0 个答案:

没有答案