I was trying to Automate desktop application (Note Pad) where BOT should be able to click on "File", BOT Can able to click Menu item File, But when I try to pass the same Value "File" via Variable it throws error.
One of the below Image contains passing the direct as Value/Text "File" (which works file).
and another one contains passing the value "File" via Variable called %NewVar1% (which throws error as Ui Element not found).
could any one clarify on the same ? is it something like we can't pass variables for selecting dynamic Selectors for Desktop Application ? this works fine for web automation .

