string not getting compare
function ApplyFirmware()
{
NameMapping.Sys.browser.pagePlus1Connect2.panelRoot.panel.panel.link.panel.Click();
NameMapping.Sys.browser.pagePlus1Connect6.link.button.Click();
let currentfirmware = NameMapping.Sys.browser.pagePlus1Connect2.panelRoot.textnode4.contentText;
Log.Message(currentfirmware);
Log.Message(Project.Variables.RC1);
Delay(2000);
if(currentfirmware == Project.Variables.RC1)
{
Log.Message(currentfirmware);
}
else
{
Log.Message("fsfgsd");
}
}
output is:
variables are not getting compared but if you look into the output screenshot both variables contains the same string but still its not getting into if loop.
Can you please help me with it.
Hi,
Try to check the length of both variables to ensure that none of them contains trailing spaces, carriage returns, etc.