Hello, I automate SAP web UI and i have problem with dynamic selector.
Original selector looks like this:
iframe[Id="CRMApplicationFrame"] iframe[Id="s_300_Z_UTIL_IC_O_1658127403712"] iframe[Id="CRMApplicationFrame"] iframe[Id="FRAME_APPLICATION"] frame[Id="WorkAreaFrame1"] a[Id="C21_W77_V78_V80_V81_V84_ChangeContracts"]
The problem is that is is dynamic. I solved it by using two selectors. I used two, because the part frame[Id="WorkAreaFrame1"]' has two values, frame[Id="WorkAreaFrame1"] and frame[Id="WorkAreaFrame2"]. I tried to use frame[Id^="WorkAreaFrame"] but it just doesnt work. I worked well with those two.
iframe[Id="CRMApplicationFrame"] iframe[Id^="s_300_Z_UTIL_IC_O_"] iframe[Id="CRMApplicationFrame"] iframe[Id="FRAME_APPLICATION"] frame[Id="WorkAreaFrame1"] a[Id$="_ChangeContracts"]
iframe[Id="CRMApplicationFrame"] iframe[Id^="s_300_Z_UTIL_IC_O_"] iframe[Id="CRMApplicationFrame"] iframe[Id="FRAME_APPLICATION"] frame[Id="WorkAreaFrame2"] a[Id$="_ChangeContracts"]
After the last PAD update (2.31.114) it just stopped working and I get error: Multiple selectors with different frame selectors are not supported. I tried everything, startsWith, endsWith, regex.....nothing works and I cant find any workaround to solve it.

Report
All responses (
Answers (