Estou enviando um commando de KEYSTROKE, mas não estou tendo sucesso. Qual a forma correta pra envio?
self.oHelper.set_key('ESC')
self.oHelper.SetKey("ESC", grid=True, grid_number=2)
self.send_keys(element(), Keys.ESCAPE)
self.oHelper.SetKey("ESC", grid=False)
usando: self.oHelper.SetKey("ESC") de acordo com: Usage:
Calling the method:
oHelper.SetKey("ENTER")
--------------------------------------
Calling the method on a grid:
oHelper.SetKey("DOWN", grid=True)
--------------------------------------
Calling the method on the second grid on the screen:
oHelper.SetKey("DOWN", grid=True, grid_number=2)
Log:
Filling Date Filling Group Filling Branch Filling Environment Navigating lateral menu: Ajuda > Sobre Waiting blocker to continue... Clicking on Fechar Setting program: CTBA140 Waiting blocker to continue... Clicking on Confirmar Waiting blocker to continue... Clicking on Confirmar Key pressed: <<<<<<<<<<<<<<<<<<<<< só aparece isso, mas não executa o comando. Setting program: CTBA200
ambiente atualizado C:\Users\reuben.vasconcelos\Downloads\testes-master\tir>pip install git+https://github.com/totvs/tir.git --upgrade
Successfully installed tir-1.13.0