Making template more universal

  • Автор темы Автор темы krisztos
  • Дата начала Дата начала
try to make it in c# by xpath or by tag name
 
I have to update the template frequently, so I try to avoid using C# (which I am not good by the way). I'd rather want to know in which fields I can use regex or -1 values. For the sake of a speed I just want to reduce amount of widgets. I guess the match nb is mandatory? What about the other?
 
you can use values of attributes as regular expressions.
not attributes themselves
 
OK, but can I made it work for all attributes - it's a common situation that field name is sometimes in id, name or inner/outer html - it's waste of time to go through 4 elements instead of one.
Create a list of all attributes it might be found in. Take a line and loop trough them one at the time.
It's still "going trough all" but in more flexible way tho.
 
Yes, I also think about that - but as I will have 30 objects I have to make 30 loops in the project? And at least one "if" to go to next object when all vales are checked.

Have authors never considered letting us to use regex in match, attribute and tag fields? Would it be very hard to implement?
 
Yes, I also think about that - but as I will have 30 objects I have to make 30 loops in the project? And at least one "if" to go to next object when all vales are checked.

Have authors never considered letting us to use regex in match, attribute and tag fields? Would it be very hard to implement?
You create 1 loop in the project, which loops up to 30 times.
 

Кто просматривает тему: (Всего: 0, Пользователи: 0, Гости: 0)