1 | static double nodeMatch_dollarVars(WebNode a, WebNode b) { |
2 | if (isDollarVar(a.text())) ret isDollarVar(b.text()) ? -1 : 0; |
3 | for (S s : web_texts(b)) |
4 | if (!web_hasLabel(a, s)) |
5 | ret -1; |
6 | ret 0; |
7 | //ret containsAll(web_ucTexts(a), web_ucTexts(b)) ? 0 : -1; |
8 | } |
9 | |
10 | static double nodeMatch_dollarVars(CharSequence _text, WebNode b) { |
11 | S text = str(_text); |
12 | if (b == null) ret -1; |
13 | if (isDollarVar(text)) ret isDollarVar(b.text()) ? -1 : 0; |
14 | ret cic(web_texts(b), text) ? 0 : -1; |
15 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1010809 |
Snippet name: | nodeMatch_dollarVars - now case-insensitive |
Eternal ID of this version: | #1010809/11 |
Text MD5: | e3fd27d32f2a9781349531e91296bd18 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-12-10 07:07:50 |
Source code size: | 500 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 505 / 536 |
Version history: | 10 change(s) |
Referenced in: | [show references] |