Skip to content

Not able to interact with window due to "error":"unknown error","message":"Failed to locate opened application window with appId: C:\\Windows\\System32\\calc.exe error  #1372

@radhakrishnanakireddy

Description

@radhakrishnanakireddy

Hi,
I am using Ruby, selenium-webdriver and winapp driver to automate calculator to try it, but I am facing the issue when I launch calculator app with below code

Selenium::WebDriver.logger.level = :info
Selenium::WebDriver.logger.level = :debug
Selenium::WebDriver.logger.output = 'selenium.log'
caps = Selenium::WebDriver::Remote::Capabilities.new
caps['platform'] = 'Windows'
   caps['app'] =  "C:\\windows\\system32\\calc.exe"
   wait = Selenium::WebDriver::Wait.new :timeout => 60
   driver = Selenium::WebDriver.for :remote, url: "http://127.0.0.1:4723", desired_capabilities: caps

Every time I am getting below error from WinAppdriver

status":13,"value":{"error":"unknown error","message":"Failed to locate opened application window with appId: C:\\Windows\\System32\\calc.exe, and processId: 14656"
Is there anyway to solve this isse in Ruby with selenium-webdriver or any suggestion for it

Note: Above code is working fine when we use ApplicationID as 'Microsoft.MicrosoftEdge_8wekyb3d8bbwe!MicrosoftEdge' etc, but it is not working If we have any custom apps like PostMan, or Notepad++

Anyone could you please help with this issue and it would be great helpful for RUBY guys

I had referred old questions also, but it did not help me to solve this issue

Thank a lot!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions