我的代码:
#file_btn--button used to open file upload window
file_btn = wait.until(ec.visibility_of_element_located((By.XPATH, "some_XPath")))
file_btn.click()
#script stops here
autoit.run("my_autoIt.exe")
"""more code""""
日志:
private func setupView() {
self.view.autoresizingMask = [.flexibleWidth, .flexibleHeight]
self.mainPlayer = Player()
self.mainPlayer.playerDelegate = self
self.mainPlayer.playbackDelegate = self
self.mainPlayer.view.frame = self.view.bounds
self.mainPlayer.playerView.playerBackgroundColor = .black
self.addChild(self.mainPlayer)
self.view.addSubview(self.mainPlayer.view)
self.mainPlayer.didMove(toParent: self)
if let mediaURL = mainContentPresenter.getContentMediaURL() {
self.mainPlayer.url = mediaURL
}else {
self.dismiss(animated: true, completion: nil)
}
self.mainPlayer.playbackLoops = false
let tapGR: UITapGestureRecognizer = UITapGestureRecognizer(target: self, action: #selector(handleTapGR(_:)))
tapGR.numberOfTapsRequired = 1
self.mainPlayer.view.addGestureRecognizer(tapGR)
}