Why is it necessary to use an adaptor while writing an if else statement

Ask general questions here.
premravi
Posts: 78
Joined: Tue Jan 08, 2019 1:55 pm

Why is it necessary to use an adaptor while writing an if else statement

Post by premravi » Mon Jul 01, 2019 8:01 am

Hi,

I noticed that without creating an adaptor, I am not able to write an if else statement moreover there are no errors during compile time
The code runs successfully also
But it is not going in the else block this is the only problem
Please help me to understand how can we overcome this challenge

Regards

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

Re: Why is it necessary to use an adaptor while writing an if else statement

Post by odklizec » Mon Jul 01, 2019 8:38 am

Hi,

Without knowing what exactly you trying to do and seeing, at very least, Ranorex snapshot (NOT screenshot) of your application under test, there is no way anyone here can help with your problem. Please specify what exactly you are trying to achieve, post snapshot and xpaths to elements you are trying to use and code which fails for you.
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