failed to find item

Ask general questions here.
Ramzi2019
Posts: 2
Joined: Tue May 21, 2019 8:46 am

failed to find item

Post by Ramzi2019 » Tue May 21, 2019 9:03 am

Hello,
I testing an APEX Application. Ranorex recognize the Masks by Recordind and in Ranorex Spy.

The Problem is : Whe I Run the Test Ranorex is failed to find item.
Erro Message:


Failed to find item 'MyTest6Repository.Bearbeitung.FpEq131101210113841018850140NORP12.P1210DIENDPNR'.
No element found for path '/dom[@domain='lxords1-test.kba.de']//div[#'apex_dialog_3']/iframe[@src='f?p=13110:1210:113841018850140::NO:RP,1210::&cs=3esV6F4MQWZFnuJYL33IENwSzmtPNas1Hm8RQAwnF-SR8SA8ELwg8awCqDxu6jk_Z3DbyFhMOZCxZy7uEIlMp_w&p_dialog_cs=0vovk08-o1EJH8nmDYnQOM8B47KWlqu574T5-fWg2tLKxlY1h_fCWeriR_M36-CVYIGZIJEzU8tT1Etee0_Bug']//input[#'P1210_DIENDPNR']' within 1.5m.
Show/Hide Stacktrace
at Ranorex.Core.Repository.RepoItemInfo.FindInternal[T](Boolean findSingle, Boolean throwException, Duration effectiveTimeoutOverride) at Ranorex.Core.Repository.RepoItemInfo.<>c__DisplayClass75_0`1.<Find>b__0() at Ranorex.Core.Testing.Services.NoMaintenanceModeService.HandleElementNotFound[T](Func`1 action, RepoItemInfo entry) at Ranorex.Core.Repository.RepoItemInfo.Find[T](Boolean findSingle, Boolean throwException, Duration effectiveTimeoutOverride) at Ranorex.Core.Repository.RepoItemInfo.CreateAdapter[T](Boolean throwException, Duration waitTimeout) at Ranorex.Core.Repository.RepoItemInfo.CreateAdapter[T](Boolean throwException) at MyTest6.MyTest6RepositoryFolders.FpEq131101210113841018850140NORP12Folder.get_P1210DIENDPNR() in c:\Users\rabidi\Documents\Ranorex\RanorexStudio Projects\MyTest6\MyTest6\MyTest6Repository.cs:line 260 at MyTest6.Recording1.Ranorex.Core.Testing.ITestModule.Run() in c:\Users\rabidi\Documents\Ranorex\RanorexStudio Projects\MyTest6\MyTest6\Recording1.cs:line 87 at Ranorex.Core.Testing.TestModuleLeaf.RunInternal(DataContext parentDataContext, Int32 iteration, Int32 iterationCount, Boolean skipIteration)


Do you have a solution for that issue?
Greetings
Ramzi

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 5071
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: failed to find item

Post by odklizec » Wed May 22, 2019 1:25 pm

Hi,

At first, there is almost nothing anyone here can do or suggest, without seeing, at very least, Ranorex snapshot (NOT screenshot) of the problematic element. So please, upload a Ranorex snapshot of the element.

At next, the searched xpath looks very fragile and easy to break...

Code: Select all

/dom[@domain='lxords1-test.kba.de']//div[#'apex_dialog_3']/iframe[@src='f?p=13110:1210:113841018850140::NO:RP,1210::&cs=3esV6F4MQWZFnuJYL33IENwSzmtPNas1Hm8RQAwnF-SR8SA8ELwg8awCqDxu6jk_Z3DbyFhMOZCxZy7uEIlMp_w&p_dialog_cs=0vovk08-o1EJH8nmDYnQOM8B47KWlqu574T5-fWg2tLKxlY1h_fCWeriR_M36-CVYIGZIJEzU8tT1Etee0_Bug']//input[#'P1210_DIENDPNR']'
You should use something like this:

Code: Select all

/dom[@domain='lxords1-test.kba.de']//div[#'apex_dialog_3']/iframe[@src~'_Bug']//input[#'P1210_DIENDPNR']
or this:

Code: Select all

/dom[@domain='lxords1-test.kba.de']//div[#'apex_dialog_3']/iframe//input[#'P1210_DIENDPNR']
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

Ramzi2019
Posts: 2
Joined: Tue May 21, 2019 8:46 am

Re: failed to find item

Post by Ramzi2019 » Mon May 27, 2019 12:27 pm

Thanks for your advise. I resolved the Problem.