playtender.robot
234 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
*** Settings ***
Library String
Library DateTime
Library playtender_service.py
*** Variables ***
${locator.tenderId} xpath=//*[contains(@class, 'tender-id')]//*[@class='value']
${locator.title} xpath=//*[@class='page-title']
${locator.description} xpath=//*[@class='tender-info-wrapper info-wrapper']//*[@class='description']
${locator.minimalStep.amount} xpath=//*[contains(@class, 'minimal-step')]//*[@class='value']
${locator.procuringEntity.name} xpath=//*[contains(@class, 'legal-name')]//*[@class='value']
${locator.value.amount} xpath=//*[contains(@class, 'budget')]//*[@class='value']
${locator.enquiryPeriod.startDate} xpath=//*[contains(@class, 'enquiry-period')]//*[@class='value']
${locator.enquiryPeriod.endDate} xpath=//*[contains(@class, 'enquiry-period')]//*[@class='value']
${locator.tenderPeriod.startDate} xpath=//*[contains(@class, 'tender-period')]//*[@class='value']
${locator.tenderPeriod.endDate} xpath=//*[contains(@class, 'tender-period')]//*[@class='value']
${locator.items[0].deliveryDate.endDate} xpath=//*[contains(@class, 'delivery-period')]//span[@class='end-date']
#${locator.items[0].deliveryLocation.latitude} id=delivery_latitude0
#${locator.items[0].deliveryLocation.longitude} id=delivery_longitude0
${locator.items[0].deliveryAddress.countryName} xpath=//p[@class='delivery']//span[@class='country']
${locator.items[0].deliveryAddress.postalCode} xpath=//p[@class='delivery']//span[@class='postcode']
${locator.items[0].deliveryAddress.region} xpath=//p[@class='delivery']//span[@class='region']
${locator.items[0].deliveryAddress.locality} xpath=//p[@class='delivery']//span[@class='locality']
${locator.items[0].deliveryAddress.address} xpath=//p[@class='delivery']//span[@class='street-address']
${locator.items[0].description} xpath=//*[contains(@class, 'item-info-wrapper')]//p[@class='title']//*[@class='value']
${locator.items[0].classification.scheme} xpath=(//p[@class='classification'])[1]//*[@class='key']
${locator.items[0].classification.id} xpath=(//p[@class='classification'])[1]//*[@class='value']
#${locator.items[0].classification.description} xpath=(//p[@class='classification'])[1]//*[@class='value']
${locator.items[0].additionalClassifications[0].scheme} xpath=(//p[@class='classification'])[2]//*[@class='key']
${locator.items[0].additionalClassifications[0].id} xpath=(//p[@class='classification'])[2]//*[@class='value']
#${locator.items[0].additionalClassifications[0].description} xpath=(//p[@class='classification'])[2]//*[@class='value']
#${locator.items[0].unit.code} xpath=(//*[@class='form-nav-tabs'])[1]//*[contains(@class, 'quantity')]
${locator.items[0].quantity} xpath=//p[@class='quantity']//*[@class='value']
${locator.questions[0].title} xpath=//div[@class='question-info-wrapper info-wrapper']//p[@class='title']//*[@class='value']
${locator.questions[0].description} xpath=//p[@class='description']//*[@class='value']
${locator.questions[0].date} xpath=//p[@class='data-published']//*[@class='value']
${locator.questions[0].answer} xpath=//p[@class='answer']//*[@class='value']
${locator.status} xpath=//*[contains(@class, 'hidden opstatus')]
${tender_page_prefix}= ${BROKERS['playtender'].basepage}/tender/view?id=
${tender_sync_prefix}= ${BROKERS['playtender'].basepage}/utils/tender-sync?pk=
${tender_sync_postfix}= ?psw=369369
${playtender_proc_type}= unknown
*** Keywords ***
Підготувати дані для оголошення тендера
[Arguments] ${username} ${tender_data} ${param3}
[return] ${tender_data}
Підготувати клієнт для користувача
[Arguments] ${username}
[Documentation] Відкрити браузер, створити об’єкт api wrapper, тощо
Open Browser ${BROKERS['playtender'].homepage} ${USERS.users['${username}'].browser} alias=${username}
Set Window Size @{USERS.users['${username}'].size}
Set Window Position @{USERS.users['${username}'].position}
inject_urllib3
Login ${username}
Login
[Arguments] ${username}
Wait Until Element Is Visible xpath=//*[contains(@data-language, '1')] 10
Click Link xpath=//*[contains(@data-language, '1')]
Click Link xpath=//a[@href='#sidebarCollapse']
Wait Until Element Is Visible xpath=//*[contains(@class, 'btn btn-lg btn-default btn-custom waves-effect waves-light')] 10
Click Link xpath=//*[contains(@class, 'btn btn-lg btn-default btn-custom waves-effect waves-light') and contains(.,'Увійти')]
Sleep 1
Wait Until Page Contains Element id=loginform-email 20
Input text id=loginform-email ${USERS.users['${username}'].login}
Input text id=loginform-password ${USERS.users['${username}'].password}
# Click Button xpath=//*[@type='submit']
Click Button xpath=//*[@class='btn btn-lg w-lg-x2 btn-success js-submit-btn']
Wait Until Page Contains Активні 20
Set Global Variable ${playtender_LOGIN_USER} ${username}
#Go To ${USERS.users['${username}'].homepage}
Створити тендер
[Arguments] ${user} ${tender_data}
${tender_data}= procuring_entity_name ${tender_data}
${tender_data_keys}= Get Dictionary Keys ${tender_data.data}
${procurementMethodType} = Set Variable If 'procurementMethodType' in ${tender_data_keys} ${tender_data.data.procurementMethodType} belowThreshold
Set To Dictionary ${USERS.users['${playtender_LOGIN_USER}']} tender_methodtype=${procurementMethodType}
# change organization info
#UserChangeOrgnizationInfo ${tender_data.data.procuringEntity}
# Run Keyword If '${SUITE_NAME}' == 'Tests Files.Complaints' Go To ${BROKERS['playtender'].basepage}/utils/config?tacceleration=${BROKERS['playtender'].intervals.belowThreshold.accelerator}
Run Keyword If '${SUITE_NAME}' == 'Tests Files.Complaints' and '${procurementMethodType}' == 'belowThreshold' Go To ${BROKERS['playtender'].basepage}/utils/config?tacceleration=360
Run Keyword If '${procurementMethodType}' == 'negotiation' Go To ${BROKERS['playtender'].basepage}/utils/config?tacceleration=1080
Run Keyword If '${procurementMethodType}' == 'aboveThresholdUA.defense' Go To ${BROKERS['playtender'].basepage}/utils/config?tacceleration=720
Selenium2Library.Switch Browser ${user}
Run Keyword If '${procurementMethodType}' == 'belowThreshold' and 'lots' not in ${tender_data_keys} Go To ${BROKERS['playtender'].basepage}/tender/create?type=${procurementMethodType}&multilot=0
Run Keyword If '${procurementMethodType}' != 'belowThreshold' or 'lots' in ${tender_data_keys} Go To ${BROKERS['playtender'].basepage}/tender/create?type=${procurementMethodType}
Wait Until Page Contains Створення закупівлі 30
### BOF - Reporting ###
Run Keyword And Return If '${procurementMethodType}' == 'reporting' Створити тендер без лотів ${user} ${tender_data}
Run Keyword And Return If '${procurementMethodType}' == 'belowThreshold' and 'lots' not in ${tender_data_keys} Створити тендер без лотів ${user} ${tender_data}
### EOF - Reporting ###
${title}= Get From Dictionary ${tender_data.data} title
${description}= Get From Dictionary ${tender_data.data} description
${playtender_proc_type}= Convert_to_Lowercase ${procurementMethodType}
${playtender_proc_type}= Remove String ${playtender_proc_type} \.
Run Keyword If '${mode}' in 'belowThreshold below_funders negotiation' and ${number_of_lots} != 0 Click Element xpath=//input[@id='tenderbelowthresholdform-is_multilot']
Input text id=tender${playtender_proc_type}form-title ${title}
Run Keyword If 'cause' in ${tender_data_keys} Select From List By Value id=tender${playtender_proc_type}form-cause ${tender_data.data.cause}
Run Keyword If 'causeDescription' in ${tender_data_keys} Input text id=tender${playtender_proc_type}form-cause_description ${tender_data.data.causeDescription}
Run Keyword If 'title_en' in ${tender_data_keys} Input Text With Checking Input Isset \#tender${playtender_proc_type}form-title_en ${tender_data.data.title_en}
Input text id=tender${playtender_proc_type}form-description ${description}
Run Keyword If 'description_en' in ${tender_data_keys} Input Text With Checking Input Isset \#tender${playtender_proc_type}form-description_en ${tender_data.data.description_en}
Run Keyword If 'fundingKind' in ${tender_data_keys} Select From List By Value id=tender${playtender_proc_type}form-funding_kind ${tender_data.data.fundingKind}
Run Keyword If 'NBUdiscountRate' in ${tender_data_keys} Input Float Multiply100 \#tender${playtender_proc_type}form-nbu_discount_rate ${tender_data.data.NBUdiscountRate}
Click Element id=tender${playtender_proc_type}form-value_added_tax_included
Run Keyword If 'mainProcurementCategory' in ${tender_data_keys} Select From List By Value id=tender${playtender_proc_type}form-main_procurement_category ${tender_data.data.mainProcurementCategory}
Run Keyword If '${procurementMethodType}' == 'belowThreshold' Створити тендер enquiryPeriod.startDate ${playtender_proc_type} ${tender_data.data.enquiryPeriod.startDate}
Run Keyword If '${procurementMethodType}' == 'belowThreshold' Створити тендер enquiryPeriod.endDate ${playtender_proc_type} ${tender_data.data.enquiryPeriod.endDate}
Run Keyword If '${procurementMethodType}' == 'belowThreshold' Створити тендер tenderPeriod.startDate ${playtender_proc_type} ${tender_data.data.tenderPeriod.startDate}
Run Keyword If '${procurementMethodType}' != 'negotiation' Створити тендер tenderPeriod.end_date ${playtender_proc_type} ${tender_data.data.tenderPeriod.endDate}
Select Checkbox id=tender${playtender_proc_type}form-quick_mode
Run Keyword If '${SUITE_NAME}' == 'Tests Files.Complaints' Select Checkbox id=tender${playtender_proc_type}form-auction_skip_mode
### BOF - BelowFunders ###
Run Keyword If 'funders' in ${tender_data_keys} Створити тендер Funder ${tender_data.data.funders[0]}
### EOF - BelowFunders ###
Click Element xpath=//*[contains(@href, '#collapseLots')]
Sleep 1
JsSetScrollToElementBySelector \#collapseLots
Click Element xpath=//span[@data-confirm-text='Ви впевнені що бажаєте видалити поточний лот?']
Click Element xpath=//div[contains(@class, 'jconfirm-box')]//button[contains(text(), 'Так')]
${items}= Get From Dictionary ${tender_data.data} items
${lots}= Get From Dictionary ${tender_data.data} lots
Set To Dictionary ${USERS.users['${playtender_LOGIN_USER}']} lots=${lots}
${lots_length}= Get Length ${lots}
: FOR ${INDEX} IN RANGE 0 ${lots_length}
\ Sleep 2
\ Click Element xpath=//a[@href='#add-lots']
\ Sleep 2
\ Click Element jquery=div[data-type="lot"].active span[data-confirm-text="Ви впевнені що бажаєте видалити поточний товар/послугу?"]
\ Click Element xpath=//div[contains(@class, 'jconfirm-box')]//button[contains(text(), 'Так')]
\ Sleep 1
\ Run Keyword If 'features' in ${tender_data_keys} Додати лот ${lots[${INDEX}]} ${INDEX} ${procurementMethodType} ${items} ${tender_data.data.features}
\ Run Keyword If 'features' not in ${tender_data_keys} Додати лот Ex2 ${lots[${INDEX}]} ${INDEX} ${procurementMethodType} ${items}
Run Keyword If 'features' in ${tender_data_keys} Click Element xpath=//*[contains(@href, '#collapseFeatures')]
Sleep 1
Run Keyword If 'features' in ${tender_data_keys} Add Features Ex ${tender_data.data.features} tenderer ${procurementMethodType} div[@id='collapseFeatures']
${Ids}= Створити тендер Збереження форми
[return] ${Ids}
Створити тендер без лотів
[Arguments] ${user} ${tender_data}
${tender_data_keys}= Get Dictionary Keys ${tender_data.data}
${procurementMethodType}= Get From Dictionary ${USERS.users['${playtender_LOGIN_USER}']} tender_methodtype
${budget}= convert_float_to_string ${tender_data.data.value.amount}
${playtender_proc_type}= Convert_to_Lowercase ${procurementMethodType}
${playtender_proc_type}= Remove String ${playtender_proc_type} \.
# fill general data
Input text id=tender${playtender_proc_type}form-title ${tender_data.data.title}
Input text id=tender${playtender_proc_type}form-description ${tender_data.data.description}
JsSetScrollToElementBySelector \#tender${playtender_proc_type}form-value_amount
Input text id=tender${playtender_proc_type}form-value_amount ${budget}
Select From List By Value id=tender${playtender_proc_type}form-value_currency ${tender_data.data.value.currency}
Run Keyword If ${tender_data.data.value.valueAddedTaxIncluded} Click Element id=tender${playtender_proc_type}form-value_added_tax_included
Run Keyword If '${procurementMethodType}' == 'belowThreshold' Input Float \#tender${playtender_proc_type}form-min_step_amount ${tender_data.data.minimalStep.amount}
Run Keyword If '${procurementMethodType}' == 'belowThreshold' Створити тендер enquiryPeriod.startDate ${playtender_proc_type} ${tender_data.data.enquiryPeriod.startDate}
Run Keyword If '${procurementMethodType}' == 'belowThreshold' Створити тендер enquiryPeriod.endDate ${playtender_proc_type} ${tender_data.data.enquiryPeriod.endDate}
Run Keyword If '${procurementMethodType}' == 'belowThreshold' Створити тендер tenderPeriod.startDate ${playtender_proc_type} ${tender_data.data.tenderPeriod.startDate}
Run Keyword If '${procurementMethodType}' == 'belowThreshold' Створити тендер tenderPeriod.end_date ${playtender_proc_type} ${tender_data.data.tenderPeriod.endDate}
Run Keyword If '${procurementMethodType}' == 'belowThreshold' Select Checkbox id=tender${playtender_proc_type}form-quick_mode
# fill items
Click Element xpath=//*[contains(@href, '#collapseItems')]
Sleep 1
JsSetScrollToElementBySelector \#collapseItems
Click Element xpath=//span[@data-confirm-text='Ви впевнені що бажаєте видалити поточний товар/послугу?']
Click Element xpath=//div[contains(@class, 'jconfirm-box')]//button[contains(text(), 'Так')]
${items}= Get From Dictionary ${tender_data.data} items
${items_length}= Get Length ${items}
: FOR ${INDEX} IN RANGE 0 ${items_length}
\ JsSetScrollToElementBySelector \#collapseItems a[href='#add-items']
\ Click Element jquery=#collapseItems a[href="#add-items"]
\ Sleep 2
\ Додати предмет By Wrapper \#collapseItems div[data-type='item'].active ${items[${INDEX}]} ${procurementMethodType}
Run Keyword If '${procurementMethodType}' == 'reporting' Додати постачальника For Reporting Fake
${Ids}= Створити тендер Збереження форми
[return] ${Ids}
Створити FakeDocs
${file_path} ${file_name} ${file_content}= create_fake_doc
Choose File xpath=//input[@type='file'] ${file_path}
Sleep 2
Створити тендер Збереження форми
#########
Run Keyword If '${mode}' in 'belowThreshold openua openeu open_competitive_dialogue openua_defense below_funders open_esco' Click Element xpath=//*[@class='form-nav-tabs nav nav-tabs nav-justified']//*[@href='#collapseDocuments']
Run Keyword If '${mode}' in 'belowThreshold openua openeu open_competitive_dialogue openua_defense below_funders open_esco' Sleep 1
# Run Keyword If '${mode}' in 'belowThreshold openua openeu open_competitive_dialogue openua_defense below_funders open_esco' Click Element xpath=//a[contains(@data-url, '/tender/get-document-form')]
Run Keyword If '${mode}' in 'belowThreshold openua openeu open_competitive_dialogue openua_defense below_funders open_esco' Wait Until Page Contains Element xpath=//input[@type='file'] 10
Run Keyword If '${mode}' in 'belowThreshold openua openeu open_competitive_dialogue openua_defense below_funders open_esco' Створити FakeDocs
Run Keyword If '${mode}' in 'belowThreshold openua openeu open_competitive_dialogue openua_defense below_funders open_esco' Sleep 2
##########
JsSetScrollToElementBySelector \#submitBtn
Capture Page Screenshot
Click Element xpath=//*[@id='submitBtn']
Capture Page Screenshot
Sleep 1
Wait Until Page Contains Закупівля створена, дочекайтесь опублікування на сайті уповноваженого органу. 10
Click Element xpath=//div[contains(@class, 'jconfirm-box')]//button[contains(@class, 'btn btn-default waves-effect waves-light btn-lg')]
Sleep 1
Wait For Sync Tender 360
${passed}= Run Keyword And Return Status Wait Until Keyword Succeeds 360 s 0 s Wait For UAID
Run Keyword Unless ${passed} Fatal Error UAID not found in 360 sec
${tender_UAid}= Get Text xpath=//*[contains(@class, 'tender-id')]//*[@class='value']
${Ids}= Convert To String ${tender_UAid}
Save Tender ID
Log ${Ids}
[return] ${Ids}
Створити тендер enquiryPeriod.startDate
[Arguments] ${playtender_proc_type} ${date}
${date}= convert_datetime_for_delivery ${date}
${date}= Convert Date ${date} %d.%m.%Y %H:%M
Input text id=tender${playtender_proc_type}form-enquiry_period_start_date ${date}
Створити тендер enquiryPeriod.endDate
[Arguments] ${playtender_proc_type} ${date}
${date}= convert_datetime_for_delivery ${date}
${date}= Convert Date ${date} %d.%m.%Y %H:%M
Input text id=tender${playtender_proc_type}form-enquiry_period_end_date ${date}
Створити тендер tenderPeriod.startDate
[Arguments] ${playtender_proc_type} ${date}
${date}= convert_datetime_for_delivery ${date}
${date}= Convert Date ${date} %d.%m.%Y %H:%M
Input text id=tender${playtender_proc_type}form-tender_period_start_date ${date}
Створити тендер tenderPeriod.end_date
[Arguments] ${playtender_proc_type} ${date}
${date}= convert_datetime_for_delivery ${date}
${date}= Convert Date ${date} %d.%m.%Y %H:%M
Input text id=tender${playtender_proc_type}form-tender_period_end_date ${date}
Створити тендер Funder
[Arguments] ${funderData}
Click Element id=tenderbelowthresholdform-is_donor
Click Element id=tenderbelowthresholdform-funder_organization_id
Click Element jquery=#tenderbelowthresholdform-funder_organization_id option[data-identifier-code=${funderData.identifier.id}]
Додати лот
[Arguments] @{arguments}
[Documentation]
... ${arguments[0]} == lot
... ${arguments[1]} == index
... ${arguments[2]} == procurementMethodType
... ${arguments[3]} == items
... ${arguments[4]} == features
Додати лот Ex ${arguments[0]} ${arguments[1]} ${arguments[2]}
${playtender_proc_type}= Convert_to_Lowercase ${arguments[2]}
${playtender_proc_type}= Remove String ${playtender_proc_type} \.
${playtender_proc_type}= Set Variable If '${playtender_proc_type}' == 'belowthreshold' ${EMPTY} ${playtender_proc_type}
${items_length}= Get Length ${arguments[3]}
: FOR ${INDEX} IN RANGE 0 ${items_length}
\ Run Keyword If '${arguments[0].id}' == '${arguments[3][${INDEX}].relatedLot}' Click Element jquery=div[data-type="lot"].active a[href="#add-items"]
\ Run Keyword If '${arguments[0].id}' == '${arguments[3][${INDEX}].relatedLot}' Sleep 2
\ Run Keyword If '${arguments[0].id}' == '${arguments[3][${INDEX}].relatedLot}' Додати предмет ${arguments[3][${INDEX}]} ${INDEX} ${arguments[2]} ${arguments[4]}
Add Features ${arguments[4]} lot ${arguments[0].id} ${arguments[2]} div[contains(@class, 'form-group lot${playtender_proc_type}form-features-dynamic-forms-wrapper')]
Додати лот Ex
[Arguments] @{arguments}
[Documentation]
... ${arguments[0]} == lot
... ${arguments[1]} == index
... ${arguments[2]} == procurementMethodType
${lot_keys}= Get Dictionary Keys ${arguments[0]}
${playtender_proc_type}= Convert_to_Lowercase ${arguments[2]}
${playtender_proc_type}= Remove String ${playtender_proc_type} \.
${playtender_proc_type}= Set Variable If '${playtender_proc_type}' == 'belowthreshold' ${EMPTY} ${playtender_proc_type}
Input text xpath=//div[contains(@class, 'active')]//div[contains(@class, 'form-group field-lot${playtender_proc_type}form')]//input[contains(@id, '-title')] ${arguments[0].title}
Run Keyword If 'title_en' in ${lot_keys} Input Text With Checking Input Isset \#collapseLots .tab-pane.active[data-type='lot'] div[class^='form-group field-lot${playtender_proc_type}form'] input[id$='-title_en'] ${arguments[0].title_en}
Input text xpath=//div[contains(@class, 'active')]//div[contains(@class, 'form-group field-lot${playtender_proc_type}form')]//textarea[contains(@id, '-description')] ${arguments[0].description}
Run Keyword If 'description_en' in ${lot_keys} Input Text With Checking Input Isset \#collapseLots .tab-pane.active[data-type='lot'] div[class^='form-group field-lot${playtender_proc_type}form'] input[id$='-description_en'] ${arguments[0].description_en}
Run Keyword If 'minimalStepPercentage' in ${lot_keys} Input Float Multiply100 \#collapseLots .tab-pane.active[data-type='lot'] div[class^='form-group field-lot${playtender_proc_type}form'] input[id$='-min_step_percentage'] ${arguments[0].minimalStepPercentage}
Run Keyword If 'yearlyPaymentsPercentageRange' in ${lot_keys} Input Float Multiply100 \#collapseLots .tab-pane.active[data-type='lot'] div[class^='form-group field-lot${playtender_proc_type}form'] input[id$='-yearly_payments_percentage_range'] ${arguments[0].yearlyPaymentsPercentageRange}
Run Keyword If 'value' in ${lot_keys} Input Float \#collapseLots .tab-pane.active[data-type='lot'] div[class^='form-group field-lot${playtender_proc_type}form'] input[id$='-value_amount'] ${arguments[0].value.amount}
Run Keyword If 'minimalStep' in ${lot_keys} Додати лот Ex step_rate ${playtender_proc_type} ${arguments[0].minimalStep.amount}
Додати лот Ex step_rate
[Arguments] ${playtender_proc_type} ${step_rate}
${step_rate}= convert_float_to_string ${step_rate}
Input text xpath=//div[contains(@class, 'active')]//div[contains(@class, 'form-group field-lot${playtender_proc_type}form')]//input[contains(@id, '-min_step_amount')] ${step_rate}
Додати лот Ex2
[Arguments] @{arguments}
[Documentation]
... ${arguments[0]} == lot
... ${arguments[1]} == index
... ${arguments[2]} == procurementMethodType
... ${arguments[3]} == items
Додати лот Ex ${arguments[0]} ${arguments[1]} ${arguments[2]}
${playtender_proc_type}= Convert_to_Lowercase ${arguments[2]}
${playtender_proc_type}= Remove String ${playtender_proc_type} \.
${playtender_proc_type}= Set Variable If '${playtender_proc_type}' == 'belowthreshold' ${EMPTY} ${playtender_proc_type}
${items_length}= Get Length ${arguments[3]}
: FOR ${INDEX} IN RANGE 0 ${items_length}
\ Run Keyword If '${arguments[0].id}' == '${arguments[3][${INDEX}].relatedLot}' Click Element jquery=div[data-type="lot"].active a[href="#add-items"]
\ Run Keyword If '${arguments[0].id}' == '${arguments[3][${INDEX}].relatedLot}' Sleep 2
\ Run Keyword If '${arguments[0].id}' == '${arguments[3][${INDEX}].relatedLot}' Додати предмет Ex ${arguments[3][${INDEX}]} ${INDEX} ${arguments[2]}
Додати предмет
[Arguments] @{ARGUMENTS}
[Documentation]
... ${ARGUMENTS[0]} == item
... ${ARGUMENTS[1]} == ${index}
... ${ARGUMENTS[2]} == ${procurementMethodType}
... ${arguments[3]} == features
${item_keys}= Get Dictionary Keys ${arguments[0]}
${playtender_proc_type}= Convert_to_Lowercase ${ARGUMENTS[2]}
${playtender_proc_type}= Remove String ${playtender_proc_type} \.
${playtender_proc_type}= Set Variable If '${playtender_proc_type}' == 'belowthreshold' ${EMPTY} ${playtender_proc_type}
${wraper}= Convert To String div[contains(@class, 'form-group lot${playtender_proc_type}form-items-dynamic-forms-wrapper')]
Додати предмет Ex ${arguments[0]} ${arguments[1]} ${arguments[2]}
Run Keyword If 'id' in ${item_keys} Add Features ${arguments[3]} item ${arguments[0].id} ${arguments[2]} ${wraper}//div[contains(@class, 'item${playtender_proc_type}form-features-dynamic-forms-wrapper')]
Додати предмет Ex
[Arguments] @{ARGUMENTS}
[Documentation]
... ${ARGUMENTS[0]} == item
... ${ARGUMENTS[1]} == ${index}
... ${ARGUMENTS[2]} == ${procurementMethodType}
${item_keys}= Get Dictionary Keys ${ARGUMENTS[0]}
${description}= Get From Dictionary ${ARGUMENTS[0]} description
${cpv_id}= Get From Dictionary ${ARGUMENTS[0].classification} id
${unit}= Get From Dictionary ${ARGUMENTS[0].unit} name
${quantity}= Get From Dictionary ${ARGUMENTS[0]} quantity
${quantity}= Convert To String ${quantity}
${region}= Get From Dictionary ${ARGUMENTS[0].deliveryAddress} region
${locality}= Get From Dictionary ${ARGUMENTS[0].deliveryAddress} locality
${street}= Get From Dictionary ${ARGUMENTS[0].deliveryAddress} streetAddress
${code}= Get From Dictionary ${ARGUMENTS[0].deliveryAddress} postalCode
${code}= Convert To String ${code}
${playtender_proc_type}= Convert_to_Lowercase ${ARGUMENTS[2]}
${playtender_proc_type}= Remove String ${playtender_proc_type} \.
${playtender_proc_type}= Set Variable If '${playtender_proc_type}' == 'belowthreshold' ${EMPTY} ${playtender_proc_type}
${wraper}= Convert To String div[contains(@class, 'form-group lot${playtender_proc_type}form-items-dynamic-forms-wrapper')]
${jqueryWrapper}= Set Variable \#collapseLots div[data-type='lot'].active div[data-type='item'].active div[class^='form-group field-item${playtender_proc_type}form']
Input text xpath=//div[contains(@class, 'active')]//${wraper}//div[contains(@class, 'active')]//div[contains(@class, 'form-group field-item${playtender_proc_type}form')]//input[contains(@id, '-description')] ${description}
Run Keyword If 'description_en' in ${item_keys}
... Input Text With Checking Input Isset ${jqueryWrapper} input[id$='-description_en'] ${ARGUMENTS[0].description_en}
Input Text With Checking Input Isset XPath div[contains(@class, 'active')]//${wraper}//div[contains(@class, 'active')]//div[contains(@class, 'form-group field-item${playtender_proc_type}form')]//input[contains(@id, '-quantity')] ${quantity}
Select From List By Label With Checking Input Isset XPath div[contains(@class, 'active')]//${wraper}//div[contains(@class, 'active')]//div[contains(@class, 'form-group field-item${playtender_proc_type}form')]//select[contains(@id, '-unit_id')] ${unit}
Click Element xpath=//div[contains(@class, 'active')]//${wraper}//div[contains(@class, 'active')]//a[contains(@href, '#classification')]
Wait Until Element Is Visible xpath=//div[contains(@id, 'classification-modal')]//h4[contains(@id, 'classificationModalLabel')]
Sleep 1
Input text xpath=//div[contains(@id, 'classification-modal')]//input[@class='form-control js-input'] ${cpv_id}
#cat Input text xpath=//div[contains(@id, 'classification-modal')]//input[@class='form-control js-input'] 99999999-9
Press key xpath=//div[contains(@id, 'classification-modal')]//input[@class='form-control js-input'] \\13
Sleep 1
Wait Until Page Contains Element xpath=//div[contains(@id, 'classification-modal')]//strong[contains(., '${cpv_id}')] 20
#cat Wait Until Page Contains Element xpath=//div[contains(@id, 'classification-modal')]//strong[contains(., '99999999-9')] 20
Run Keyword If '99999999-9' == ${cpv_id} Click Element xpath=(//div[contains(@id, 'classification-modal')]//i[@class='jstree-icon jstree-checkbox'])[1]
... ELSE Click Element xpath=//div[contains(@id, 'classification-modal')]//i[@class='jstree-icon jstree-checkbox']
Click Element xpath=//div[contains(@id, 'classification-modal')]//button[contains(@class, 'btn btn-default waves-effect waves-light js-submit')]
Sleep 1
Run Keyword If 'additionalClassifications' in ${item_keys} Input Additional Classifications ${ARGUMENTS[0].additionalClassifications} ${wraper}
Run Keyword If 'additionalClassifications' in ${item_keys} Sleep 1
Run Keyword If '${ARGUMENTS[2]}' == 'belowThreshold' Click Element xpath=//div[contains(@class, 'active')]//${wraper}//div[contains(@class, 'active')]//input[contains(@id, '-delivery')]
Select From List By Label //div[contains(@class, 'active')]//${wraper}//div[contains(@class, 'active')]//div[contains(@class, 'form-group field-item${playtender_proc_type}form')]//select[contains(@id, '-delivery_region_id')] ${region}
Sleep 1
Input Text xpath=//div[contains(@class, 'active')]//${wraper}//div[contains(@class, 'active')]//div[contains(@class, 'form-group field-item${playtender_proc_type}form')]//input[contains(@id, '-delivery_locality')] ${locality}
Input Text xpath=//div[contains(@class, 'active')]//${wraper}//div[contains(@class, 'active')]//div[contains(@class, 'form-group field-item${playtender_proc_type}form')]//input[contains(@id, '-delivery_street_address')] ${street}
Input Text xpath=//div[contains(@class, 'active')]//${wraper}//div[contains(@class, 'active')]//div[contains(@class, 'form-group field-item${playtender_proc_type}form')]//input[contains(@id, '-delivery_postal_code')] ${code}
Run Keyword If 'deliveryDate' in ${item_keys} Input DateTime XPath div[contains(@class, 'active')]//${wraper}//div[contains(@class, 'active')]//div[contains(@class, 'form-group field-item${playtender_proc_type}form')]//input[contains(@id, '-delivery_start_date')] ${ARGUMENTS[0].deliveryDate.startDate}
Run Keyword If 'deliveryDate' in ${item_keys} Input DateTime XPath div[contains(@class, 'active')]//${wraper}//div[contains(@class, 'active')]//div[contains(@class, 'form-group field-item${playtender_proc_type}form')]//input[contains(@id, '-delivery_end_date')] ${ARGUMENTS[0].deliveryDate.endDate}
Run Keyword If 'deliveryLocation' in ${item_keys}
... InputItemDeliveryLocationByWrapper \#collapseLots div[data-type='lot'].active div[data-type='item'].active ${ARGUMENTS[0].deliveryLocation} ${ARGUMENTS[2]}
Додати предмет By Wrapper
[Arguments] ${wrapper} ${data} ${procurementMethodType}
${data_keys}= Get Dictionary Keys ${data}
${quantity_srt}= Convert To String ${data.quantity}
${playtender_proc_type}= GetInputProcTypeByProcurementMethodType ${procurementMethodType}
JsSetScrollToElementBySelector ${wrapper} div[class^='form-group field-item${playtender_proc_type}form'] input[id$='-description']
Input text jquery=${wrapper} div[class^='form-group field-item${playtender_proc_type}form'] input[id$='-description'] ${data.description}
Run Keyword If 'description_en' in ${data_keys} Input Text With Checking Input Isset ${wrapper} div[class^='form-group field-item${playtender_proc_type}form'] input[id$='-description_en'] ${data.description_en}
JsSetScrollToElementBySelector ${wrapper} div[class^='form-group field-item${playtender_proc_type}form'] input[id$='-quantity']
Input text jquery=${wrapper} div[class^='form-group field-item${playtender_proc_type}form'] input[id$='-quantity'] ${quantity_srt}
Select From List By Label jquery=${wrapper} div[class^='form-group field-item${playtender_proc_type}form'] select[id$='-unit_id'] ${data.unit.name}
InputClassificationByWrapper ${wrapper} ${data.classification.id}
Run Keyword If 'additionalClassifications' in ${data_keys}
... InputAdditionalClassificationsByWrapper ${wrapper} ${data.additionalClassifications}
Run Keyword If 'deliveryAddress' in ${data_keys}
... InputItemDeliveryAddressByWrapper ${wrapper} ${data.deliveryAddress} ${procurementMethodType}
Run Keyword If 'deliveryDate' in ${data_keys}
... InputItemDeliveryDateByWrapper ${wrapper} ${data.deliveryDate} ${procurementMethodType}
Run Keyword If 'deliveryLocation' in ${data_keys}
... InputItemDeliveryLocationByWrapper ${wrapper} ${data.deliveryLocation} ${procurementMethodType}
InputItemDeliveryAddressByWrapper
[Arguments] ${wrapper} ${data} ${procurementMethodType}
${playtender_proc_type}= GetInputProcTypeByProcurementMethodType ${procurementMethodType}
JsSetScrollToElementBySelector ${wrapper} div[class^='form-group field-item${playtender_proc_type}form'] input[id$='-delivery_region_id']
Select From List By Label jquery=${wrapper} div[class^='form-group field-item${playtender_proc_type}form'] select[id$='-delivery_region_id'] ${data.region}
Input text jquery=${wrapper} div[class^='form-group field-item${playtender_proc_type}form'] input[id$='-delivery_postal_code'] ${data.postalCode}
Input text jquery=${wrapper} div[class^='form-group field-item${playtender_proc_type}form'] input[id$='-delivery_locality'] ${data.locality}
Input text jquery=${wrapper} div[class^='form-group field-item${playtender_proc_type}form'] input[id$='-delivery_street_address'] ${data.streetAddress}
InputItemDeliveryLocationByWrapper
[Arguments] ${wrapper} ${data} ${procurementMethodType}
run keyword and ignore error Execute JavaScript jQuery("${wrapper} input[id$='-delivery_location_latitude']").val("${data.latitude}");
run keyword and ignore error Execute JavaScript jQuery("${wrapper} input[id$='-delivery_location_longitude']").val("${data.longitude}");
InputItemDeliveryDateByWrapper
[Arguments] ${wrapper} ${data} ${procurementMethodType}
${data_keys}= Get Dictionary Keys ${data}
${playtender_proc_type}= GetInputProcTypeByProcurementMethodType ${procurementMethodType}
JsSetScrollToElementBySelector ${wrapper} div[class^='form-group field-item${playtender_proc_type}form'] input[id$='-delivery_start_date']
Run Keyword If 'startDate' in ${data_keys}
... Input DateTime ${wrapper} div[class^='form-group field-item${playtender_proc_type}form'] input[id$='-delivery_start_date'] ${data.startDate}
Run Keyword If 'endDate' in ${data_keys}
... Input DateTime ${wrapper} div[class^='form-group field-item${playtender_proc_type}form'] input[id$='-delivery_end_date'] ${data.endDate}
Input Additional Classifications
[Arguments] @{ARGUMENTS}
[Documentation]
... ${ARGUMENTS[0]} == additionalClassifications
... ${ARGUMENTS[1]} == wraper
Click Element xpath=//div[contains(@class, 'active')]//${ARGUMENTS[1]}//div[contains(@class, 'active')]//a[contains(@href, '#additionalclassification')]
Wait Until Element Is Visible xpath=//div[contains(@id, 'additional-classification-modal')]//h4[contains(@id, 'additionalClassificationModalLabel')]
Sleep 1
${count}= Get Length ${ARGUMENTS[0]}
: FOR ${INDEX} IN RANGE 0 ${count}
\ Continue For Loop If '${ARGUMENTS[0][${INDEX}].scheme}' == 'ДКПП'
\ Click Element jquery=#additional-classification-modal .nav a[data-toggle="tab"][data-scheme="${ARGUMENTS[0][${INDEX}].scheme}"]
\ Wait Until Element Is Visible jquery=#additional-classification-modal .tab-pane.tree-wrapper.active input.js-input
\ Input text jquery=#additional-classification-modal .tab-pane.tree-wrapper.active input.js-input ${ARGUMENTS[0][${INDEX}].id}
\ Press key jquery=#additional-classification-modal .tab-pane.tree-wrapper.active input.js-input \\13
\ Sleep 2
\ Wait Until Page Contains Element jquery=#additional-classification-modal .tab-pane.tree-wrapper.active .tree.js-search-tree strong:contains("${ARGUMENTS[0][${INDEX}].id}") 20
\ Click Element jquery=#additional-classification-modal .tab-pane.tree-wrapper.active .tree.js-search-tree li:first i.jstree-checkbox
Click Element xpath=//div[contains(@id, 'additional-classification-modal')]//button[contains(@class, 'js-submit')]
Add Features
[Arguments] @{arguments}
[Documentation]
... ${arguments[0]} == features
... ${arguments[1]} == featureOf
... ${arguments[2]} == relatedItemId
... ${arguments[3]} == procurementMethodType
... ${arguments[4]} == wraper
${features_length}= Get Length ${arguments[0]}
: FOR ${INDEX} IN RANGE 0 ${features_length}
\ Run Keyword If '${arguments[0][${INDEX}].featureOf}' == '${arguments[1]}' Run Keyword If '${arguments[2]}' == '${arguments[0][${INDEX}].relatedItem}' Add Feature ${arguments[0][${INDEX}]} ${INDEX} ${arguments[3]} ${arguments[4]} ${arguments[1]}
Add Features Ex
[Arguments] @{arguments}
[Documentation]
... ${arguments[0]} == features
... ${arguments[1]} == featureOf
... ${arguments[2]} == procurementMethodType
... ${arguments[3]} == wraper
${features_length}= Get Length ${arguments[0]}
: FOR ${INDEX} IN RANGE 0 ${features_length}
\ Run Keyword If '${arguments[0][${INDEX}].featureOf}' == '${arguments[1]}' Add Feature ${arguments[0][${INDEX}]} ${INDEX} ${arguments[2]} ${arguments[3]} ${arguments[1]}
Add Feature
[Arguments] @{arguments}
[Documentation]
... ${arguments[0]} == feature
... ${arguments[1]} == index
... ${arguments[2]} == procurementMethodType
... ${arguments[3]} == wraper
... ${arguments[4]} == featureOf
Click Element xpath=//${arguments[3]}//a[@href='#add-features']
Sleep 2
Click Element xpath=//${arguments[3]}//div[contains(@class, 'active')]//span[@data-confirm-text='Ви впевнені що бажаєте видалити поточну опцію?']
Sleep 1
Click Element xpath=//div[contains(@class, 'jconfirm-box')]//button[contains(text(), 'Так')]
Sleep 1
Add Feature Ex ${arguments[0]} ${arguments[1]} ${arguments[2]} ${arguments[3]} ${arguments[4]}
Add Feature Ex
[Arguments] @{arguments}
[Documentation]
... ${arguments[0]} == feature
... ${arguments[1]} == index
... ${arguments[2]} == procurementMethodType
... ${arguments[3]} == wraper
... ${arguments[4]} == featureOf
${feature_keys}= Get Dictionary Keys ${arguments[0]}
${featureOf}= Set Variable If '${arguments[4]}' == 'tenderer' ${EMPTY} ${arguments[4]}
${playtender_proc_type}= Convert_to_Lowercase ${arguments[2]}
${playtender_proc_type}= Remove String ${playtender_proc_type} \.
${playtender_proc_type}= Set Variable If '${playtender_proc_type}' == 'belowthreshold' ${EMPTY} ${playtender_proc_type}
${playtender_proc_type}= Set Variable If '${playtender_proc_type}' == 'abovethresholdua' ${EMPTY} ${playtender_proc_type}
${wraper}= Set Variable If '${playtender_proc_type}' == '' form-group field-${featureOf}featureform form-group field-feature${playtender_proc_type}form
${wraper2}= Set Variable If '${playtender_proc_type}' == '' form-group ${featureOf}featureform-enums-dynamic-forms-wrapper form-group feature${playtender_proc_type}form-enums-dynamic-forms-wrapper
${options}= Get From Dictionary ${arguments[0]} enum
Input text xpath=//${arguments[3]}//div[contains(@class, 'active')]//div[contains(@class, '${wraper}')]//input[contains(@id, '-title')] ${arguments[0].title}
Run Keyword If 'title_en' in ${feature_keys}
... Input Text With Checking Input Isset XPath ${arguments[3]}//div[contains(@class, 'active')]//div[contains(@class, '${wraper}')]//input[contains(@id, '-title_en')] ${arguments[0].title_en}
Input text xpath=//${arguments[3]}//div[contains(@class, 'active')]//div[contains(@class, '${wraper}')]//input[contains(@id, '-description')] ${arguments[0].description}
Run Keyword If 'description_en' in ${feature_keys}
... Input Text With Checking Input Isset XPath ${arguments[3]}//div[contains(@class, 'active')]//div[contains(@class, '${wraper}')]//input[contains(@id, '-description_en')] ${arguments[0].description_en}
${options_length}= Get Length ${options}
: FOR ${INDEX} IN RANGE 0 ${options_length}
\ Click Element xpath=//${arguments[3]}//div[contains(@class, 'active')]//a[@href='#add-enums']
\ Sleep 2
\ Input text xpath=//${arguments[3]}//div[contains(@class, 'active')]//div[contains(@class, '${wraper2}')]//div[contains(@class, 'active')]//input[contains(@id, '-title')] ${options[${INDEX}].title}
\ Input Text With Checking Input Isset XPath ${arguments[3]}//div[contains(@class, 'active')]//div[contains(@class, '${wraper2}')]//div[contains(@class, 'active')]//input[contains(@id, '-title_en')] ${options[${INDEX}].title}
\ ${value}= convert_float_to_string ${options[${INDEX}].value}
\ ${value}= Convert To Number ${value}
\ ${value}= multiply_hundred ${value}
\ ${value}= convert_float_to_string ${value}
\ Input text xpath=//${arguments[3]}//div[contains(@class, 'active')]//div[contains(@class, '${wraper2}')]//div[contains(@class, 'active')]//input[contains(@id, '-value')] ${value}
Wait For UAID
Sleep 5
Reload Page
${tender_UAid}= Get Text xpath=//*[contains(@class, 'tender-id')]//*[@class='value']
Клацнути і дочекатися
[Arguments] ${click_locator} ${wanted_locator} ${timeout}
[Documentation]
... click_locator: Where to click
... wanted_locator: What are we waiting for
... timeout: Timeout
Click Element ${click_locator}
Sleep 3
Wait Until Page Contains Element ${wanted_locator} ${timeout}
Клацнути і дочекатися пошук
[Arguments] ${click_locator} ${wanted_locator} ${timeout}
[Documentation]
... click_locator: Where to click
... wanted_locator: What are we waiting for
... timeout: Timeout
Press key ${click_locator} \\13
Sleep 3
Wait Until Page Contains Element ${wanted_locator} ${timeout}
Шукати і знайти
# Клацнути і дочекатися xpath=//button[contains(text(), 'Пошук')] xpath=(//div[@id='tender-list'])//a[contains(@href, '/tender/')][1] 5
# Press key xpath=//div[contains(@id, 'classification-modal')]//input[@class='form-control js-input'] \\13
# Клацнути і дочекатися пошук xpath=//input[@data-ds='query-input'] xpath=(//div[@id='tender-list'])//a[contains(@href, '/tender/')][1] 5
Клацнути і дочекатися xpath=//button[@class='btn btn-default fa fa-search js-submit-btn'] xpath=(//div[@id='tender-list'])//a[contains(@href, '/tender/')][1] 5
Load And Check Text
[Arguments] ${url} ${wanted_text}
Go To ${url}
Page Should Contain ${wanted_text}
Load And Wait Text
[Arguments] ${url} ${wanted_text} ${retries}
Wait Until Keyword Succeeds ${retries}x 200ms Load And Check Text ${url} ${wanted_text}
Пошук тендера по ідентифікатору
[Arguments] @{ARGUMENTS}
[Documentation]
... ${ARGUMENTS[0]} == username
... ${ARGUMENTS[1]} == ${TENDER_UAID}
Selenium2Library.Switch browser ${ARGUMENTS[0]}
Go To ${BROKERS['playtender'].basepage}/utils/tender-sync?tenderid=${ARGUMENTS[1]}
# Sleep 10
Load And Wait Text ${BROKERS['playtender'].homepage} Публічні закупівлі 4
Wait Until Page Contains Element id=tendersearchform-query 20
#cat Input Text id=tendersearchform-query ${ARGUMENTS[1]}
Input Text xpath=//input[@data-ds='query-input'] ${ARGUMENTS[1]}
${timeout_on_wait}= Get Broker Property By Username ${ARGUMENTS[0]} timeout_on_wait
# ${passed}= Run Keyword And Return Status Wait Until Keyword Succeeds ${timeout_on_wait} s 0 s Шукати і знайти
# Run Keyword Unless ${passed} Fatal Error Тендер не знайдено за ${timeout_on_wait} секунд
${passed}= Run Keyword And Return Status Wait Until Keyword Succeeds 360 s 0 s Шукати і знайти
Run Keyword Unless ${passed} Fatal Error Тендер не знайдено за 360 секунд
# Sleep 3
Wait Until Page Contains Element xpath=(//div[@id='tender-list'])//a[contains(@href, '/tender/')][1] 20
Sleep 3
#cat Click Element xpath=(//div[@id='tender-list'])//a[contains(@href, '/tender/')][1]
${count}= execute javascript return $('#tender-list .js-item').length;
${count}= convert to integer ${count}
run keyword if ${count} == 1 Click Element xpath=(//div[@id='tender-list'])//a[contains(@href, '/tender/')][1]
run keyword if ${count} > 1 Click Element xpath=(//div[@id='tender-list'])//a[contains(@href, '/tender/')][2]
Wait Until Page Contains ${ARGUMENTS[1]} 60
Save Tender ID
Capture Page Screenshot
Пошук тендера за кошти донора
[Arguments] ${username} @{arguments}
${identifier}= Set Variable ${arguments[0]}
Go To ${BROKERS['playtender'].basepage}/tenders?funder_organization=${identifier}
Wait Until Page Contains Element id=tender-list 30
Capture Page Screenshot tender_with_funders_search_result
Sleep 5
# redirect to tender view for getting data
Go To ${BROKERS['playtender'].basepage}/tender/${TENDER.TENDER_UAID}
Wait Until Page Contains ${TENDER.TENDER_UAID} 10
Завантажити документ
[Arguments] @{ARGUMENTS}
[Documentation]
... ${ARGUMENTS[0]} == username
... ${ARGUMENTS[1]} == ${filepath}
... ${ARGUMENTS[2]} == ${TENDER_UAID}
Selenium2Library.Switch Browser ${ARGUMENTS[0]}
Open Tender
Wait Until Page Contains Ідентифікатор закупівлі 20
Click Element xpath=//a[contains(@href, '/tender/update?id=')]
Sleep 1
Wait Until Page Contains Element id=tender-form 10
Click Element xpath=//*[@class='form-nav-tabs nav nav-tabs nav-justified']//*[@href='#collapseDocuments']
Sleep 1
Click Element xpath=//a[contains(@data-url, '/tender/get-document-form')]
Wait Until Page Contains Element xpath=//input[@type='file'] 10
Run Keyword If '${mode}' in 'belowThreshold openua openeu open_competitive_dialogue openua_defense below_funders open_esco' Choose File xpath=(//input[@type='file'])[2] ${ARGUMENTS[1]}
... ELSE Choose File xpath=//input[@type='file'] ${ARGUMENTS[1]}
Sleep 2
Save Tender
Wait For Sync Tender
[Arguments] ${timeout}
${passed}= Run Keyword And Return Status Wait Until Keyword Succeeds ${timeout} s 0 s Wait For Sync Tender Finish
Run Keyword Unless ${passed} Fatal Error Sync Finish not finish in ${timeout} sec
Wait For Sync Tender Finish
Sleep 3
Reload Page
Page Should Not Contain Element id=tender-sync-info
Створити постачальника, додати документацію і підтвердити його
[Arguments] @{ARGUMENTS}
[Documentation]
... ${ARGUMENTS[0]} == ${username}
... ${ARGUMENTS[1]} == ${TENDER_UAID}
... ${ARGUMENTS[2]} == ${award_data}
... ${ARGUMENTS[3]} == ${filepath}
Selenium2Library.Switch Browser ${ARGUMENTS[0]}
Open Tender
Wait Until Page Contains Ідентифікатор закупівлі 20
Click Element xpath=//a[contains(@href, '/tender/update?id=')]
Sleep 1
Wait Until Page Contains Element id=tender-form 10
### BOF - Reporting ###
${procurementMethodType}= Get From Dictionary ${USERS.users['${playtender_LOGIN_USER}']} tender_methodtype
Run Keyword If '${procurementMethodType}' == 'reporting' Додати постачальника For Reporting ${ARGUMENTS[2].data.value.amount} ${ARGUMENTS[2].data.suppliers[0]}
### EOF - Reporting ###
Run Keyword If '${procurementMethodType}' != 'reporting' Click Element xpath=//*[@class='form-nav-tabs nav nav-tabs nav-justified']//*[@href='#collapseAward']
Run Keyword If '${procurementMethodType}' != 'reporting' Sleep 1
Run Keyword If '${procurementMethodType}' != 'reporting' Click Element jquery=div.awards-dynamic-forms-wrapper .nav a.js-dynamic-form-add
Run Keyword If '${procurementMethodType}' != 'reporting' Sleep 2
Run Keyword If '${procurementMethodType}' != 'reporting' Додати постачальника ${ARGUMENTS[2].data.lotID} ${ARGUMENTS[2].data}
Save Tender
Click Element jquery=#tender-part-pjax .list-group-item[href*="tender/qualification"]
Sleep 1
Wait Until Page Contains Кваліфікація 10
Select From List By Value id=qualificationform-decision accept
### BOF - Reporting ###
Run Keyword If '${procurementMethodType}' == 'reporting' Click Element jquery=#qualification-documents a.js-dynamic-form-add[href="#add-documents"]
Run Keyword If '${procurementMethodType}' == 'reporting' Sleep 2
JsSetScrollToElementBySelector \#qualification-documents
### EOF - Reporting ###
Choose File jquery=div.documents-dynamic-forms-wrapper div[data-type="awarddocument"].active div.fileupload-input-wrapper input[type="file"] ${ARGUMENTS[3]}
Sleep 2
Wait Until Page Contains Element jquery=div.documents-dynamic-forms-wrapper div[data-type="awarddocument"].active div.fileupload-input-wrapper div.btn.item 60
Run Keyword And Ignore Error Click Element id=qualificationform-qualified
Click Element jquery=#tender-qualification-form .js-submit-btn
Sleep 1
Wait Until Page Contains Рішення завантажене, тепер потрібно накласти ЕЦП. 60
Click Element xpath=//div[contains(@class, 'jconfirm-box')]//button[contains(@class, 'btn btn-default waves-effect waves-light btn-lg')]
Sleep 1
Click Element jquery=#tender-qualification-form .js-submit-btn
Sleep 1
Load Sign
Wait Until Page Contains ЕЦП успішно накладено на рішення, тепер потрібно підтвердити рішення. 20
Click Element xpath=//div[contains(@class, 'jconfirm-box')]//button[contains(@class, 'btn btn-default waves-effect waves-light btn-lg')]
Sleep 1
Click Element jquery=#tender-qualification-form .js-submit-btn
Sleep 1
Wait Until Page Contains Рішення підтверджене, очікує опублікування на сайті уповноваженого органу. 20
Click Element xpath=//div[contains(@class, 'jconfirm-box')]//button[contains(@class, 'btn btn-default waves-effect waves-light btn-lg')]
Sleep 1
Wait For Sync Tender 360
Додати постачальника
[Arguments] @{ARGUMENTS}
[Documentation]
... ${ARGUMENTS[0]} = ${lot_id}
... ${ARGUMENTS[1]} = ${award_data}
${lots_length}= Get Length ${USERS.users['${playtender_LOGIN_USER}'].lots}
: FOR ${INDEX} IN RANGE 0 ${lots_length}
\ Run Keyword If '${USERS.users['${playtender_LOGIN_USER}'].lots[${INDEX}].id}' == '${ARGUMENTS[0]}' Select From List By Label jquery=div.awards-dynamic-forms-wrapper div.dynamic-forms-list div[data-type="award"].active select[id$="-award_lot_key"] ${USERS.users['${playtender_LOGIN_USER}'].lots[${INDEX}].title}
Input Text jquery=div.awards-dynamic-forms-wrapper div.dynamic-forms-list div[data-type="award"].active input[id$="-award_organization_name"] ${ARGUMENTS[1].suppliers[0].identifier.legalName}
Click Element xpath=//span[@class='select2-selection select2-selection--single']
Input Text xpath=//input[contains(@class,'select2-search__field')] United State Register, Ukraine
Press Key xpath=//input[contains(@class,'select2-search__field')] \\13
Input Text jquery=div.awards-dynamic-forms-wrapper div.dynamic-forms-list div[data-type="award"].active input[id$="-award_organization_identifier_code"] ${ARGUMENTS[1].suppliers[0].identifier.id}
#cat Input Text jquery=div.awards-dynamic-forms-wrapper div.dynamic-forms-list div[data-type="award"].active input[id$="-award_organization_edrpou"] ${ARGUMENTS[1].suppliers[0].identifier.id}
Select From List By Label jquery=div.awards-dynamic-forms-wrapper div.dynamic-forms-list div[data-type="award"].active select[id$="-award_organization_region_id"] ${ARGUMENTS[1].suppliers[0].address.region}
Input Text jquery=div.awards-dynamic-forms-wrapper div.dynamic-forms-list div[data-type="award"].active input[id$="-award_organization_postal_code"] ${ARGUMENTS[1].suppliers[0].address.postalCode}
Input Text jquery=div.awards-dynamic-forms-wrapper div.dynamic-forms-list div[data-type="award"].active input[id$="-award_organization_locality"] ${ARGUMENTS[1].suppliers[0].address.locality}
Input Text jquery=div.awards-dynamic-forms-wrapper div.dynamic-forms-list div[data-type="award"].active input[id$="-award_organization_street_address"] ${ARGUMENTS[1].suppliers[0].address.streetAddress}
Input Text jquery=div.awards-dynamic-forms-wrapper div.dynamic-forms-list div[data-type="award"].active input[id$="-award_organization_contact_point_name"] ${ARGUMENTS[1].suppliers[0].contactPoint.name}
Input Text jquery=div.awards-dynamic-forms-wrapper div.dynamic-forms-list div[data-type="award"].active input[id$="-award_organization_contact_point_email"] ${ARGUMENTS[1].suppliers[0].contactPoint.email}
Input Text jquery=div.awards-dynamic-forms-wrapper div.dynamic-forms-list div[data-type="award"].active input[id$="-award_organization_contact_point_phone"] ${ARGUMENTS[1].suppliers[0].contactPoint.telephone}
Input Text jquery=div.awards-dynamic-forms-wrapper div.dynamic-forms-list div[data-type="award"].active input[id$="-award_value_amount"] ${ARGUMENTS[1].value.amount}
Додати постачальника For Reporting
[Arguments] ${budget} ${data}
${wrapper}= Set Variable \#collapseAward
JsSetScrollToElementBySelector \#collapseAward
Click Element xpath=//*[@class='form-nav-tabs nav nav-tabs nav-justified']//*[@href='#collapseAward']
Sleep 2
JsSetScrollToElementBySelector ${wrapper} \#tenderreportingform-award_organization_name
Input Text jquery=${wrapper} \#tenderreportingform-award_organization_name ${data.name}
Click Element xpath=//span[@class='select2-selection select2-selection--single']
Input Text xpath=//input[contains(@class,'select2-search__field')] United State Register, Ukraine
Press Key xpath=//input[contains(@class,'select2-search__field')] \\13
Input Text jquery=${wrapper} \#tenderreportingform-award_organization_identifier_code ${data.identifier.id}
# Input Text jquery=${wrapper} \#tenderreportingform-award_organization_edrpou ${data.identifier.id}
JsSetScrollToElementBySelector ${wrapper} \#tenderreportingform-award_organization_region_id
Select From List By Label jquery=${wrapper} \#tenderreportingform-award_organization_region_id ${data.address.region}
Input Text jquery=${wrapper} \#tenderreportingform-award_organization_postal_code ${data.address.postalCode}
Input Text jquery=${wrapper} \#tenderreportingform-award_organization_locality ${data.address.locality}
Input Text jquery=${wrapper} \#tenderreportingform-award_organization_street_address ${data.address.streetAddress}
Input Text jquery=${wrapper} \#tenderreportingform-award_organization_contact_point_name ${data.contactPoint.name}
Input Text jquery=${wrapper} \#tenderreportingform-award_organization_contact_point_email ${data.contactPoint.email}
Input Text jquery=${wrapper} \#tenderreportingform-award_organization_contact_point_phone ${data.contactPoint.telephone}
Input Float ${wrapper} \#tenderreportingform-award_value_amount ${budget}
Додати постачальника For Reporting Fake
${identifier} Create Dictionary id=1234567890
${address} Create Dictionary region=місто Київ postalCode=123 locality=Київ streetAddress=address
${contactPoint} Create Dictionary name=name email=test@test.ru telephone=123123
${data} Create Dictionary name=Organization identifier=${identifier} address=${address} contactPoint=${contactPoint}
Додати постачальника For Reporting 1 ${data}
Редагувати угоду
[Arguments] @{arguments}
[Documentation]
... ${arguments[0]} = ${username}
... ${arguments[1]} = ${tender_uaid}
... ${arguments[2]} = ${contract_index}
${field}= Set Variable ${arguments[3]}
${value}= Convert To String ${arguments[4]}
${arguments_length}= Get Length ${arguments}
# open contract form
Open Tender
Click Element xpath=//a[contains(@href, '/tender/contract?id=')]
Sleep 1
Wait Until Page Contains Завантаження контракту 10
# wait complaint period ended
JsSetScrollToElementBySelector .js-award-complaint-period-wrapper
${complaint_period_end_date}= get_invisible_text jquery=.js-award-complaint-period-wrapper .award-complaint-period-end-date-source.hidden
Wait date ${complaint_period_end_date}
Sleep 60
Встановити поле відкритої форми редагування угоди ${field} ${value}
Run Keyword If ${arguments_length} > 6 Встановити поле відкритої форми редагування угоди ${arguments[5]} ${arguments[6]}
${contract_number}= Get Value id=contractform-contract_number
Run Keyword If '${contract_number}' == '' Input Text id=contractform-contract_number 1234567890
${date_signed}= Get Current Date result_format=%d.%m.%Y %H:%M
${contract_date_signed}= Get Value id=contractform-date_signed
Run Keyword If '${contract_date_signed}' == '' Input Text id=contractform-date_signed ${date_signed}
${date_start}= Get Current Date increment=02:00:00 result_format=%d.%m.%Y %H:%M
${contract_date_start}= Get Value id=contractform-date_start
Run Keyword If '${contract_date_start}' == '' Input Text id=contractform-date_start ${date_start}
${date_end}= Get Current Date increment=04:00:00 result_format=%d.%m.%Y %H:%M
${contract_date_end}= Get Value id=contractform-date_end
Run Keyword If '${contract_date_end}' == '' Input Text id=contractform-date_end ${date_end}
#########
Run Keyword If '${mode}' in 'belowThreshold openua openeu open_competitive_dialogue openua_defense below_funders open_esco' Створити FakeDocs
Run Keyword If '${mode}' in 'belowThreshold openua openeu open_competitive_dialogue openua_defense below_funders open_esco' Sleep 2
##########
${document_isset}= Run keyword And Return Status Page Should Contain Element jquery=.contractform-documents-dynamic-forms-wrapper .js-dynamic-forms-list > .js-item:last .js-fileupload-input-wrapper .init-value,.contractform-documents-dynamic-forms-wrapper .js-dynamic-forms-list > .js-item:last .js-fileupload-input-wrapper .btn.js-item
Run Keyword If ${document_isset} == False Завантажити у відкриту форму редагування угоди документ Fake
# click save button
JsSetScrollToElementBySelector \#tender-contract-form .js-submit-btn
Click Element jquery=\#tender-contract-form .js-submit-btn
Sleep 1
Capture Page Screenshot
Wait Until Page Contains Контракт успішно завантажений 10
Click Element xpath=//div[contains(@class, 'jconfirm-box')]//button[contains(@class, 'btn btn-default waves-effect waves-light btn-lg')]
# wait sync
WaitPageSyncing 60
Встановити дату підписання угоди
[Arguments] @{arguments}
[Documentation]
... ${arguments[0]} = ${username}
... ${arguments[1]} = ${tender_uaid}
... ${arguments[2]} = ${contract_index}
... ${arguments[3]} = ${date_signed}
playtender.Редагувати угоду ${arguments[0]} ${arguments[1]} ${arguments[2]} dateSigned ${arguments[3]}
Вказати період дії угоди
[Arguments] @{arguments}
[Documentation]
... ${arguments[0]} = ${username}
... ${arguments[1]} = ${tender_uaid}
... ${arguments[2]} = ${contract_index}
... ${arguments[3]} = ${date_start}
... ${arguments[4]} = ${date_end}
playtender.Редагувати угоду ${arguments[0]} ${arguments[1]} ${arguments[2]} period.startDate ${arguments[3]} period.endDate ${arguments[4]}
Завантажити документ в угоду
[Arguments] @{arguments}
[Documentation]
... ${arguments[0]} = ${username}
... ${arguments[1]} = ${filename}
... ${arguments[2]} = ${tender_uaid}
... ${arguments[3]} = ${contract_index}
playtender.Редагувати угоду ${arguments[0]} ${arguments[2]} ${arguments[3]} document ${arguments[1]}
Підтвердити підписання контракту
[Arguments] @{ARGUMENTS}
[Documentation]
... ${ARGUMENTS[0]} = ${username}
${procurementMethodType}= Отримати інформацію із тендера procurementMethodType
Selenium2Library.Switch Browser ${ARGUMENTS[0]}
Sleep 61
Open Tender
Wait Until Page Contains Ідентифікатор закупівлі 20
Click Element xpath=//a[contains(@href, '/tender/contract?id=')]
Sleep 1
Wait Until Page Contains Завантаження контракту 10
Перевірити неможливість підписання контракту
${contract_number}= Get Value id=contractform-contract_number
Run Keyword If '${contract_number}' == '' Input Text id=contractform-contract_number 1234567890
${date_start}= Get Current Date increment=02:00:00 result_format=%d.%m.%Y %H:%M
${contract_date_start}= Get Value id=contractform-date_start
Run Keyword If '${contract_date_start}' == '' Input Text id=contractform-date_start ${date_start}
${date_end}= Get Current Date increment=04:00:00 result_format=%d.%m.%Y %H:%M
${contract_date_end}= Get Value id=contractform-date_end
Run Keyword If '${contract_date_end}' == '' Input Text id=contractform-date_end ${date_end}
${document_isset}= Run keyword And Return Status Page Should Contain Element jquery=.contractform-documents-dynamic-forms-wrapper .js-dynamic-forms-list > .js-item:last .js-fileupload-input-wrapper .init-value,.contractform-documents-dynamic-forms-wrapper .js-dynamic-forms-list > .js-item:last .js-fileupload-input-wrapper .btn.js-item
Run Keyword If ${document_isset} == False and '${procurementMethodType}' != 'reporting' Завантажити у відкриту форму редагування угоди документ Fake
Click Element jquery=#tender-contract-form .js-submit-btn
Sleep 1
Wait Until Page Contains Контракт успішно завантажений 20
Click Element xpath=//div[contains(@class, 'jconfirm-box')]//button[contains(@class, 'btn btn-default waves-effect waves-light btn-lg')]
WaitPageSyncing 62
Wait Until Page Contains Активувати контракт 20
Click Element xpath=//a[contains(@href, '/tender/contract-activate?id=')]
Sleep 1
Wait Until Page Contains Активація контракту 20
JsSetScrollToElementBySelector \#tender-contract-form .js-submit-btn
${sign_needed}= Run keyword And Return Status Page Should Contain Накласти ЕЦП
Click Element jquery=#tender-contract-form .js-submit-btn
Sleep 1
Run Keyword If '${SUITE_NAME}' == 'Tests Files.Negotiation' or ${sign_needed}
... Run Keywords
... Load Sign
... AND
... Wait Until Page Contains ЕЦП успішно накладено 20
... AND
... Click Element xpath=//div[contains(@class, 'jconfirm-box')]//button[contains(@class, 'btn btn-default waves-effect waves-light btn-lg')]
... AND
... Sleep 1
... AND
... Click Element jquery=#tender-contract-form .js-submit-btn
... AND
... Sleep 1
Wait Until Page Contains Контракт успішно активовано 20
Click Element xpath=//div[contains(@class, 'jconfirm-box')]//button[contains(@class, 'btn btn-default waves-effect waves-light btn-lg')]
# wait sync
WaitPageSyncing 300
Перевірити неможливість підписання контракту
${date_sign}= Get Current Date local 0 %d.%m.%Y %H:%M
${contract_date_signed}= Get Value id=contractform-date_signed
Run Keyword If '${contract_date_signed}' == '' Input Text id=contractform-date_signed ${date_sign}
Execute JavaScript $('#contractform-date_signed').blur();
Sleep 3
# Capture Page Screenshot
${status}= Run keyword And Return Status Page Should Contain Значення "Дата підписання" повинно бути більшим значення
Run Keyword If ${status} Fail Підписати контракт неможливо
${status}= Run keyword And Return Status Page Should Contain Контракт можна буде підписати після
Run Keyword If ${status} Fail Підписати контракт неможливо
Встановити поле відкритої форми редагування угоди
[Arguments] ${field} ${value}
JsSetScrollToElementBySelector \#contractform-contract_number
Run Keyword If '${field}' == 'value.amount' Input Float \#contractform-value_amount ${value}
Run Keyword If '${field}' == 'dateSigned' Input DateTime \#contractform-date_signed ${value}
Run Keyword If '${field}' == 'period.startDate' Input DateTime \#contractform-date_start ${value}
Run Keyword If '${field}' == 'period.endDate' Input DateTime \#contractform-date_end ${value}
Run Keyword If '${field}' == 'document' Завантажити у відкриту форму редагування угоди документ ${value}
Завантажити у відкриту форму редагування угоди документ
[Arguments] ${filename}
# resolve filename
${filename}= Run Keyword If '${filename}' == 'Fake' GenerateFakeDocument
... ELSE Set Variable ${filename}
JsSetScrollToElementBySelector \#contractform-documents
Choose File jquery=.contractform-documents-dynamic-forms-wrapper .js-dynamic-forms-list .js-item.active .js-fileupload-input-wrapper .js-btn-upload input[type=file] ${filename}
Sleep 3
Load Sign
${loadingKey}= Run keyword And Return Status Wait Until Page Contains Серійний номер 40
Run Keyword If ${loadingKey} == False Load Sign Data
Wait Until Page Contains Серійний номер 60
Click Element id=SignDataButton
Sleep 5
Load Sign Data
Wait Until Page Contains Element id=CAsServersSelect 60
Select From List By Label id=CAsServersSelect Тестовий ЦСК АТ "ІІТ"
Wait Until Page Contains Element id=PKeyFileInput 10
Choose File id=PKeyFileInput ${CURDIR}/Key-6.dat
Wait Until Page Contains Element id=PKeyPassword 10
Input Text id=PKeyPassword 12345677
Wait Until Page Contains Element id=PKeyReadButton 10
Click Element id=PKeyReadButton
Wait user action
[Arguments] @{ARGUMENTS}
Execute JavaScript alertMsg({content: 'wait user action', autoClose: '299'});
Wait Until Page Does Not Contain wait user action 300
Оновити сторінку з тендером
[Arguments] @{ARGUMENTS}
[Documentation]
... ${ARGUMENTS[0]} = username
... ${ARGUMENTS[1]} = ${TENDER_UAID}
# open for owner without syncing
Run Keyword And Return If '${ROLE}' == 'tender_owner' Go To ${BROKERS['playtender'].basepage}/tender/${ARGUMENTS[1]}
Selenium2Library.Switch Browser ${ARGUMENTS[0]}
Sync Tender
Open Tender
Внести зміни в тендер
[Arguments] @{ARGUMENTS}
[Documentation]
... ${ARGUMENTS[0]} = username
... ${ARGUMENTS[1]} = ${TENDER_UAID}
... ${ARGUMENTS[2]} = field_locator (description)
... ${ARGUMENTS[3]} = text
Selenium2Library.Switch Browser ${ARGUMENTS[0]}
Open Tender
${procurementMethodType}= Отримати інформацію із тендера procurementMethodType
${playtender_proc_type}= Convert_to_Lowercase ${procurementMethodType}
${playtender_proc_type}= Remove String ${playtender_proc_type} \.
# Log To Console ${ARGUMENTS[0]}
# Log To Console ${ARGUMENTS[1]}
# Log To Console ${ARGUMENTS[2]}
# Log To Console ${ARGUMENTS[3]}
Click Element xpath=//a[contains(@href, '/tender/update?id=')]
Sleep 1
Wait Until Page Contains Element id=tender-form 10
Run Keyword If '${ARGUMENTS[2]}' == 'tenderPeriod.endDate' Внести зміни в тендер tenderPeriod.endDate ${ARGUMENTS[3]} ${procurementMethodType}
Run Keyword If '${ARGUMENTS[2]}' == 'description' Input text id=tender${playtender_proc_type}form-description ${ARGUMENTS[3]}
Sleep 1
Save Tender
Capture Page Screenshot
Внести зміни в тендер tenderPeriod.endDate
[Arguments] ${value} ${procurementMethodType}
${playtender_proc_type}= Convert_to_Lowercase ${procurementMethodType}
${playtender_proc_type}= Remove String ${playtender_proc_type} \.
${converted_date}= convert_datetime_for_delivery ${value}
${converted_date}= Convert Date ${converted_date} %d.%m.%Y %H:%M
Input text id=tender${playtender_proc_type}form-tender_period_end_date ${converted_date}
Отримати посилання на аукціон для глядача
[Arguments] ${username} @{arguments}
Selenium2Library.Switch browser ${username}
Wait For Status active.auction ${username} 100000
Open Tender
${return_value}= get_invisible_text xpath=//*[contains(@class, 'hidden auction-url')]
[return] ${return_value}
Отримати посилання на аукціон для учасника
[Arguments] ${username} @{arguments}
Selenium2Library.Switch browser ${username}
Wait For Status active.auction ${username} 100000
${passed}= Run Keyword And Return Status Wait Until Keyword Succeeds 100000 s 0 s Search Participation Url
Run Keyword Unless ${passed} Fatal Error Link не знайдено за 100000 секунд
${return_value}= get_invisible_text xpath=//*[contains(@class, 'hidden auction-participation-url')]
[return] ${return_value}
Wait date
[Arguments] ${date}
${sleep}= wait_to_date ${date}
Run Keyword If ${sleep} > 0 Sleep ${sleep}
Switch To Questions
Click Element xpath=//a[contains(@href, '/tender/questions?id=')]
Wait Until Page Contains Element id=tender-question-list 10
Save tender ID
${status}= Run keyword And Return Status Dictionary Should Not Contain Key ${USERS.users['${playtender_LOGIN_USER}']} TENDER_ID
${procurementMethodType}= Отримати інформацію із тендера procurementMethodType
Run Keyword If ${status} or '${procurementMethodType}' == 'competitiveDialogueUA.stage2' or '${procurementMethodType}' == 'competitiveDialogueEU.stage2' Add id to tender
Add id to tender
${url}= Log Location
${tender_id}= Split String From Right ${url} / max_split=1
Set To Dictionary ${USERS.users['${playtender_LOGIN_USER}']} TENDER_ID=${tender_id[1]}
Get Tender Sync Url
[Arguments] ${tender_id}
Run Keyword And Return Catenate SEPARATOR= ${tender_sync_prefix} ${tender_id}
Sync Tender
${status}= Run keyword And Return Status Dictionary Should Not Contain Key ${USERS.users['${playtender_LOGIN_USER}']} TENDER_ID
Run Keyword And Return If ${status} Go To ${BROKERS['playtender'].syncpage}
${tender_id}= Get From Dictionary ${USERS.users['${playtender_LOGIN_USER}']} TENDER_ID
${sync_url}= Get Tender Sync Url ${tender_id}
Go To ${sync_url}
Open Tender
${no_id}= Run Keyword And Return Status Dictionary Should Not Contain Key ${USERS.users['${playtender_LOGIN_USER}']} TENDER_ID
Return From Keyword If ${no_id}
Wait For All Transfer Complete
Sync Tender
${tender_id}= Get From Dictionary ${USERS.users['${playtender_LOGIN_USER}']} TENDER_ID
${tender_url}= Catenate SEPARATOR= ${tender_page_prefix} ${tender_id}
Go To ${tender_url}
Wait Until Page Contains Element id=tender-general-info 3
Wait For All Transfer Complete
${sync_passed}= Run Keyword And Return Status Wait Until Keyword Succeeds 100 s 0 s Wait For Transfer Complete
Run Keyword Unless ${sync_passed} Fatal Error Sync not finish in 100 sec
Wait For Transfer Complete
Sleep 2
Reload Page
Run Keyword And Ignore Error Click Element xpath=//div[@id='myBid']//a[contains(@href,'#collapseMyBid')]
Run Keyword If '${ROLE}' == 'provider' Sleep 500ms
Page Should Not Contain Element xpath=//i[@class='fa fa-spin fa-refresh']
Звірити статус тендераa
[Arguments] ${username} ${left}
${right}= Отримати інформацію із тендера status
# Log To Console ${left}
# Log To Console ${right}
Порівняти об'єкти ${left} ${right}
Check Status
[Arguments] ${wanted_status} ${username}
Sleep 5
Open Tender
Звірити статус тендераa ${username} ${wanted_status}
Wait For Status
[Arguments] ${wanted_status} ${username} ${timeout}
${passed}= Run Keyword And Return Status Wait Until Keyword Succeeds ${timeout} s 0 s Check Status ${wanted_status} ${username}
Run Keyword Unless ${passed} Fatal Error Status ${wanted_status} не знайдено за ${timeout} секунд
Search Participation Url
Sleep 30
Open Tender
${return_value}= get_invisible_text xpath=//*[contains(@class, 'hidden auction-participation-url')]
Start Edit Lot
[Arguments] ${lot_id}
Open Tender
Click Element xpath=//a[contains(@href, '/tender/update?id=')]
Sleep 1
Wait Until Page Contains Element id=tender-form 10
Click Element xpath=//*[@class='form-nav-tabs nav nav-tabs nav-justified']//*[contains(@href, '#collapseLots')]
Sleep 1
Click Element xpath=//div[@id='collapseLots']//span[contains(text(), '${lot_id}')]
Sleep 1
Save Tender
[Arguments] ${od}=${None}
Sleep 1
JsSetScrollToElementBySelector \#submitBtn
Click Button xpath=//*[text()='Зберегти зміни']
Wait Until Page Contains Закупівля оновлена 10
Sleep 1
Click Element xpath=//div[contains(@class, 'jconfirm-box')]//button[contains(@class, 'btn btn-default waves-effect waves-light btn-lg')]
Sleep 1
Wait For Sync Tender 360
Завантажити документ в лот
[Arguments] ${username} ${file_path} ${tender_uaid} ${lot_id}
Switch browser ${username}
${procurementMethodType}= Get From Dictionary ${USERS.users['${playtender_LOGIN_USER}']} tender_methodtype
${playtender_proc_type}= Convert_to_Lowercase ${procurementMethodType}
${playtender_proc_type}= Remove String ${playtender_proc_type} \.
Start Edit Lot ${lot_id}
Click Element xpath=//div[@id='collapseLots']//div[contains(@class, 'form-group lot${playtender_proc_type}form-documents-dynamic-forms-wrapper')]//a[@href='#add-documents']
Sleep 1
Wait Until Page Contains Element xpath=//div[@id='collapseLots']//div[contains(@class, 'form-group lot${playtender_proc_type}form-documents-dynamic-forms-wrapper')]//input[@type='file'] 10
Choose File xpath=//div[@id='collapseLots']//div[contains(@class, 'form-group lot${playtender_proc_type}form-documents-dynamic-forms-wrapper')]//input[@type='file'] ${filepath}
Sleep 2
Save Tender
Змінити лот
[Arguments] ${username} ${tender_uaid} ${lot_id} ${field} ${value}
Switch browser ${username}
${procurementMethodType}= Get From Dictionary ${USERS.users['${playtender_LOGIN_USER}']} tender_methodtype
${playtender_proc_type}= Convert_to_Lowercase ${procurementMethodType}
${playtender_proc_type}= Remove String ${playtender_proc_type} \.
Start Edit Lot ${lot_id}
Run Keyword If '${field}' == 'value.amount' Змінити лот value.amount ${value} ${playtender_proc_type}
Run Keyword If '${field}' == 'minimalStep.amount' Змінити лот minimalStep.amount ${value} ${playtender_proc_type}
Run Keyword If '${field}' == 'description' Input text xpath=//div[contains(@class, 'form-group tender${playtender_proc_type}form-lots-dynamic-forms-wrapper')]//div[contains(@class, 'active')]//div[contains(@class, 'form-group field-lot${playtender_proc_type}form')]//textarea[contains(@id, '-description')] ${value}
Save Tender
Змінити лот value.amount
[Arguments] ${value} ${playtender_proc_type}
${converted_num}= convert_float_to_string ${value}
Input text xpath=//div[contains(@class, 'form-group tender${playtender_proc_type}form-lots-dynamic-forms-wrapper')]//div[contains(@class, 'active')]//div[contains(@class, 'form-group field-lot${playtender_proc_type}form')]//input[contains(@id, '-value_amount')] ${converted_num}
Змінити лот minimalStep.amount
[Arguments] ${value} ${playtender_proc_type}
${converted_num}= convert_float_to_string ${value}
Input text xpath=//div[contains(@class, 'form-group tender${playtender_proc_type}form-lots-dynamic-forms-wrapper')]//div[contains(@class, 'active')]//div[contains(@class, 'form-group field-lot${playtender_proc_type}form')]//input[contains(@id, '-min_step_amount')] ${converted_num}
Створити лот із предметом закупівлі
[Arguments] ${username} ${tender_uaid} ${lot} ${item}
Switch browser ${username}
${procurementMethodType}= Get From Dictionary ${USERS.users['${playtender_LOGIN_USER}']} tender_methodtype
${playtender_proc_type}= Convert_to_Lowercase ${procurementMethodType}
${playtender_proc_type}= Remove String ${playtender_proc_type} \.
Open Tender
Click Element xpath=//a[contains(@href, '/tender/update?id=')]
Sleep 1
Wait Until Page Contains Element id=tender-form 10
Click Element xpath=//*[@class='form-nav-tabs nav nav-tabs nav-justified']//*[contains(@href, '#collapseLots')]
Sleep 2
Click Element xpath=//a[@href='#add-lots']
Sleep 2
Додати лот Ex ${lot.data} 0 ${procurementMethodType}
Додати предмет Ex ${item} 0 ${procurementMethodType}
Save Tender
Додати предмет закупівлі в лот
[Arguments] ${username} ${tender_uaid} ${lot_id} ${item}
Switch browser ${username}
${procurementMethodType}= Get From Dictionary ${USERS.users['${playtender_LOGIN_USER}']} tender_methodtype
${playtender_proc_type}= Convert_to_Lowercase ${procurementMethodType}
${playtender_proc_type}= Remove String ${playtender_proc_type} \.
Start Edit Lot ${lot_id}
Click Element xpath=//div[contains(@class, 'active')]//a[@href='#add-items']
Sleep 2
Додати предмет Ex ${item} 0 ${procurementMethodType}
Save Tender
Видалити предмет закупівлі
[Arguments] ${username} ${tender_uaid} ${item_id} ${lot_id}
Switch browser ${username}
Start Edit Lot ${lot_id}
Click Element xpath=//div[contains(@class, 'active')]//span[contains(text(), '${item_id}')]
Sleep 1
Click Element xpath=//li[contains(@data-title, '${item_id}')]//span[@data-confirm-text='Ви впевнені що бажаєте видалити поточний товар/послугу?']
Sleep 1
Click Element xpath=//div[contains(@class, 'jconfirm-box')]//button[contains(text(), 'Так')]
Sleep 1
Save Tender
Видалити лот
[Arguments] ${username} ${tender_uaid} ${lot_id}
Switch browser ${username}
#Fail delete lot not supported
Start Edit Lot ${lot_id} # open tender form and open lots
Click Element jquery=#collapseLots .nav li[data-title^='${lot_id}'] a[data-toggle='tab'] # open needed lot
Sleep 500ms
Click Element jquery=#collapseLots .nav li[data-title^='${lot_id}'] a[data-toggle='tab'] .js-dynamic-form-remove # click button to remove lot
Wait Until Page Contains Ви впевнені що бажаєте видалити поточний лот? 3
Click Element xpath=//div[contains(@class, 'jconfirm-box')]//button[contains(text(), 'Так')] # confrim deleting
Wait Until Page Does Not Contain Element jquery=#collapseLots .nav li[data-title^='${lot_id}'] a[data-toggle='tab'] 3
Save Tender
Додати неціновий показник на тендер
[Arguments] ${username} ${tender_uaid} ${feature}
Switch browser ${username}
${procurementMethodType}= Get From Dictionary ${USERS.users['${playtender_LOGIN_USER}']} tender_methodtype
${playtender_proc_type}= Convert_to_Lowercase ${procurementMethodType}
${playtender_proc_type}= Remove String ${playtender_proc_type} \.
Open Tender
Click Element xpath=//a[contains(@href, '/tender/update?id=')]
Sleep 1
Wait Until Page Contains Element id=tender-form 10
Click Element xpath=//*[contains(@class, 'form-nav-tabs')]//*[contains(@href, '#collapseFeatures')]
Sleep 1
Add Feature ${feature} 0 ${procurementMethodType} div[@id='collapseFeatures'] tenderer
Save Tender
Видалити неціновий показник
[Arguments] ${username} ${tender_uaid} ${feature_id}
Switch browser ${username}
${tender_id}= Get From Dictionary ${USERS.users['${playtender_LOGIN_USER}']} TENDER_ID
Sync Tender
Go To ${BROKERS['playtender'].basepage}/tender/update?id=${tender_id}\#showfeaturebytext:${feature_id}
Sleep 2
Click Element xpath=//li[contains(@data-title, '${feature_id}')]//span[@data-confirm-text='Ви впевнені що бажаєте видалити поточний неціновий критерій?']
Sleep 1
Click Element xpath=//div[contains(@class, 'jconfirm-box')]//button[contains(text(), 'Так')]
Sleep 1
Save Tender
Додати неціновий показник на лот
[Arguments] ${username} ${tender_uaid} ${feature} ${lot_id}
Switch browser ${username}
${procurementMethodType}= Get From Dictionary ${USERS.users['${playtender_LOGIN_USER}']} tender_methodtype
${playtender_proc_type}= Convert_to_Lowercase ${procurementMethodType}
${playtender_proc_type}= Remove String ${playtender_proc_type} \.
Start Edit Lot ${lot_id}
Add Feature ${feature} 0 ${procurementMethodType} div[contains(@class, 'form-group tender${playtender_proc_type}form-lots-dynamic-forms-wrapper')]//div[contains(@class, 'active')]//div[contains(@class, 'form-group lot${playtender_proc_type}form-features-dynamic-forms-wrapper')] lot
Save Tender
Додати неціновий показник на предмет
[Arguments] ${username} ${tender_uaid} ${feature} ${item_id}
Switch browser ${username}
${procurementMethodType}= Get From Dictionary ${USERS.users['${playtender_LOGIN_USER}']} tender_methodtype
${playtender_proc_type}= Convert_to_Lowercase ${procurementMethodType}
${playtender_proc_type}= Remove String ${playtender_proc_type} \.
${tender_id}= Get From Dictionary ${USERS.users['${playtender_LOGIN_USER}']} TENDER_ID
Sync Tender
Go To ${BROKERS['playtender'].basepage}/tender/update?id=${tender_id}\#showitembytext:${item_id}
Sleep 2
Add Feature ${feature} 0 ${procurementMethodType} div[contains(@class, 'form-group tender${playtender_proc_type}form-lots-dynamic-forms-wrapper')]//div[contains(@class, 'active')]//div[contains(@class, 'form-group lot${playtender_proc_type}form-items-dynamic-forms-wrapper')]//div[contains(@class, 'item${playtender_proc_type}form-features-dynamic-forms-wrapper')] item
Save Tender
Відповісти на запитання
[Arguments] ${username} ${tender_uaid} ${answer} ${question_id}
Switch browser ${username}
${tender_id}= Get From Dictionary ${USERS.users['${playtender_LOGIN_USER}']} TENDER_ID
Sync Tender
Go To ${BROKERS['playtender'].basepage}/tender/question-answer?id=${tender_id}
Click Element xpath=//select[@id='questionanswerform-pk']
Click Element xpath=//select[@id='questionanswerform-pk']//option[contains(text(), '${question_id}')]
Input text xpath=//textarea[contains(@id, 'questionanswerform-answer')] ${answer.data.answer}
Click Element xpath=//button[contains(text(), 'Надати відповідь')]
Sleep 1
Click Element xpath=//div[contains(@class, 'jconfirm')]//button[contains(text(), 'Закрити')]
Sleep 20
Відповісти на вимогу
[Arguments] ${username} ${tender_uaid} ${claim_id} ${answer} ${award_index}
Switch browser ${username}
${tender_id}= Get From Dictionary ${USERS.users['${playtender_LOGIN_USER}']} TENDER_ID
Sync Tender
Go To ${BROKERS['playtender'].basepage}/tender/complaint-answer?id=${tender_id}
Input text xpath=//textarea[contains(@id, 'complaintanswerform-resolution')] ${answer.data.resolution}
Run Keyword If '${answer.data.resolutionType}' == 'resolved' Select From List By Label xpath=//select[@id='complaintanswerform-resolution_type'] Задоволено
Run Keyword If '${answer.data.resolutionType}' == 'declined' Select From List By Label xpath=//select[@id='complaintanswerform-resolution_type'] Відхилено
Run Keyword If '${answer.data.resolutionType}' == 'invalid' Select From List By Label xpath=//select[@id='complaintanswerform-resolution_type'] Не задоволено
Input text xpath=//textarea[contains(@id, 'complaintanswerform-tenderer_action')] ${answer.data.tendererAction}
Click Element xpath=//button[contains(text(), 'Надати відповідь')]
Sleep 1
Click Element xpath=//div[contains(@class, 'jconfirm')]//button[contains(text(), 'Закрити')]
Sleep 2
Відповісти на вимогу про виправлення умов закупівлі
[Arguments] ${username} ${tender_uaid} ${claim_id} ${answer}
Відповісти на вимогу ${username} ${tender_uaid} ${claim_id} ${answer} null
Відповісти на вимогу про виправлення умов лоту
[Arguments] ${username} ${tender_uaid} ${claim_id} ${answer}
Відповісти на вимогу ${username} ${tender_uaid} ${claim_id} ${answer} null
Відповісти на вимогу про виправлення визначення переможця
[Arguments] ${username} ${tender_uaid} ${claim_id} ${answer} ${award_index}
Відповісти на вимогу ${username} ${tender_uaid} ${claim_id} ${answer} ${award_index}
Завантажити документ у кваліфікацію
[Arguments] ${username} ${doc_name} ${tender_uaid} ${proposal_id}
Switch browser ${username}
#workaround
${proposal_id} = Set Variable If '-1' == '${proposal_id}' 1 ${proposal_id}
${proposal_id} = Set Variable If '-2' == '${proposal_id}' 2 ${proposal_id}
${doc_contents}= Get File ${doc_name}
Set To Dictionary ${USERS.users['${playtender_LOGIN_USER}']} proposal${proposal_id}_document=${doc_name}
Set To Dictionary ${USERS.users['${playtender_LOGIN_USER}']} proposal${proposal_id}_document_contents=${doc_contents}
Відхилити кваліфікацію
[Arguments] ${username} ${tender_uaid} ${proposal_id}
Switch browser ${username}
#workaround
${proposal_id} = Set Variable If '-1' == '${proposal_id}' 1 ${proposal_id}
${proposal_id} = Set Variable If '-2' == '${proposal_id}' 2 ${proposal_id}
Відкрити форму прекваліфікації і потрібну кваліфікацію ${proposal_id}
Click Element id=prequalificationform-decision
Click Element jquery=#prequalificationform-decision option[value='decline']
Wait Until Page Contains Element id=prequalificationform-description
Click Element jquery=#prequalificationform-title option.js-decline:first
Input text id=prequalificationform-description GenerateFakeText
${doc_name}= Завантажити збережений документ у форму кваліфікації ${proposal_id}
Завантажити рішення кваліфікації і накласти ЕЦП і повернутися на перегляд закупівлі
Remove File ${doc_name}
Скасувати кваліфікацію
[Arguments] ${username} ${tender_uaid} ${proposal_id}
Switch browser ${username}
Відкрити форму прекваліфікації і потрібну кваліфікацію ${proposal_id}
Click Element id=prequalificationform-decision
Click Element jquery=#prequalificationform-decision option[value='cancel']
Wait Until Page Contains Element id=prequalificationform-description
Run Keyword And Ignore Error Click Element jquery=#prequalificationform-title option.js-cancel:first
Input text id=prequalificationform-description GenerateFakeText
Підтвердити рішення кваліфікації і повернутися на перегляд закупівлі
Підтвердити кваліфікацію
[Arguments] ${username} ${tender_uaid} ${proposal_id}
Switch browser ${username}
#workaround
${proposal_id} = Set Variable If '-1' == '${proposal_id}' 1 ${proposal_id}
${proposal_id} = Set Variable If '-2' == '${proposal_id}' 2 ${proposal_id}
# handle sign not loaded
: FOR ${INDEX} IN RANGE 0 10
\ Відкрити форму прекваліфікації і потрібну кваліфікацію ${proposal_id}
\ Select From List By Label xpath=//select[@id='prequalificationform-decision'] Підтвердити
\ ${doc_name}= Завантажити збережений документ у форму кваліфікації ${proposal_id}
\ Click Element id=prequalificationform-eligible
\ Click Element id=prequalificationform-qualified
\ ${passed}= run keyword and return status Завантажити рішення кваліфікації і накласти ЕЦП і повернутися на перегляд закупівлі
\ run keyword if ${passed} == True Remove File ${doc_name}
\ run keyword if ${passed} == False sleep 30
\ exit for loop if ${passed} == True
Відкрити форму прекваліфікації і потрібну кваліфікацію
[Arguments] ${proposal_index}
Open Tender
Click Element xpath=//div[contains(@class, 'aside-menu ')]//a[contains(@href, '/tender/prequalification?id=')]
Wait Until Page Contains Element id=tender-prequalification-form 10
Click Element id=prequalificationform-qualification
Click Element jquery=select#prequalificationform-qualification option:eq(${proposal_index})
Sleep 2
JsSetScrollToElementBySelector \#prequalificationform-decision
Завантажити збережений документ у форму кваліфікації
[Arguments] ${proposal_index}
${doc_isset}= Run Keyword And Return Status Dictionary Should Contain Key ${USERS.users['${playtender_LOGIN_USER}']} proposal${proposal_index}_document
${doc_name}= Run Keyword If ${doc_isset} Get From Dictionary ${USERS.users['${playtender_LOGIN_USER}']} proposal${proposal_index}_document
${doc_contents}= Run Keyword If ${doc_isset} Get From Dictionary ${USERS.users['${playtender_LOGIN_USER}']} proposal${proposal_index}_document_contents
Run Keyword If ${doc_isset} Create File ${doc_name} ${doc_contents}
${doc_name}= Run Keyword If ${doc_isset} == False GenerateFakeDocument
... ELSE Set Variable ${doc_name}
JsSetScrollToElementBySelector \#prequalification-documents
Choose File xpath=//div[contains(@id, 'fileuploadbtnwrapper')]//input[@type='file'] ${doc_name}
Sleep 2
[return] ${doc_name}
Підтвердити рішення кваліфікації і повернутися на перегляд закупівлі
JsSetScrollToElementBySelector \#tender-prequalification-form .js-submit-btn
Click Button jquery=#tender-prequalification-form .js-submit-btn
Wait Until Page Contains Element xpath=//div[contains(@class, 'jconfirm')]//*[text()='Закрити'] 20
Click Button xpath=//div[contains(@class, 'jconfirm')]//*[text()='Закрити']
Sleep 3
Open Tender
Завантажити рішення кваліфікації і накласти ЕЦП і повернутися на перегляд закупівлі
JsSetScrollToElementBySelector \#tender-prequalification-form .js-submit-btn
Click Button jquery=#tender-prequalification-form .js-submit-btn
Wait Until Page Contains Element xpath=//div[contains(@class, 'jconfirm')]//*[text()='Закрити'] 20
Click Button xpath=//div[contains(@class, 'jconfirm')]//*[text()='Закрити']
Sleep 3
Capture Page Screenshot
Click Button xpath=//*[text()='Накласти ЕЦП']
Sleep 1
Load Sign
Wait Until Page Contains ЕЦП успішно накладено на рішення 20
Click Button xpath=//div[contains(@class, 'jconfirm')]//*[text()='Закрити']
Sleep 3
Підтвердити рішення кваліфікації і повернутися на перегляд закупівлі
Затвердити остаточне рішення кваліфікації
[Arguments] ${username} ${tender_uaid}
Switch browser ${username}
Open Tender
Click Element xpath=//a[contains(@href, '/tender/prequalification-approve?id=')]
Sleep 1
Click Button xpath=//*[text()='Так']
Wait Until Page Contains Прекваліфікація підтверджена 20
Click Button xpath=//div[contains(@class, 'jconfirm')]//*[text()='Закрити']
Sleep 2
WaitPageSyncing 300
### BOF - Competitive Dialogue ###
Перевести тендер на статус очікування обробки мостом
[Arguments] ${username} ${tender_uaid}
Switch browser ${username}
Open Tender
WaitTenderStage2 1800
Click Element xpath=//a[contains(@href, '/tender/confirm-stage2?id=')]
Sleep 1
Click Button xpath=//*[text()='Так']
Wait Until Page Contains Підтвердження успішно надане 20
Click Button xpath=//div[contains(@class, 'jconfirm')]//*[text()='Закрити']
Sleep 2
WaitPageSyncing 300
WaitTenderStage2
[Arguments] ${timeout}
${passed}= Run Keyword And Return Status Wait Until Keyword Succeeds ${timeout} s 0 s GetIsTenderReadyForStage2
Run Keyword Unless ${passed} Fatal Error Tender stage2 was not appeared in ${timeout} sec
GetIsTenderReadyForStage2
Sleep 30
Reload Page
Sleep 1
Page Should Contain Підтвердження другого епату
Отримати тендер другого етапу та зберегти його
[Arguments] ${username} ${stage2_tender_uaid}
Switch browser ${username}
Add id to tender
активувати другий етап
[Arguments] ${username} ${stage2_tender_uaid}
Switch browser ${username}
${current_tender_uaid}= Отримати інформацію із тендера tenderID
Run Keyword If '${current_tender_uaid}' != '${stage2_tender_uaid}' Go To ${BROKERS['playtender'].basepage}/tender/${stage2_tender_uaid}
WaitTenderStage2Update 1800
Click Element xpath=//a[contains(@href, '/tender/update?id=')]
Sleep 1
Wait Until Page Contains Element id=tender-form 10
${tender_end_date}= Get Current Date increment=00:25:00 result_format=%d.%m.%Y %H:%M
JsSetScrollToElementBySelector \#tendercompetitivedialogueuastage2form-tender_period_end_date
Input Converted DateTime \#tendercompetitivedialogueuastage2form-tender_period_end_date ${tender_end_date}
Click Element id=tendercompetitivedialogueuastage2form-draft_mode
Save Tender
WaitTenderStage2Update
[Arguments] ${timeout}
${passed}= Run Keyword And Return Status Wait Until Keyword Succeeds ${timeout} s 0 s GetIsTenderReadyForStage2Update
Run Keyword Unless ${passed} Fatal Error Tender stage2 can not be updated in ${timeout} sec
GetIsTenderReadyForStage2Update
Sleep 30
Reload Page
Sleep 1
Page Should Contain Element xpath=//a[contains(@href, '/tender/update?id=')]
### EOF - Competitive Dialogue ###
Задати запитання
[Arguments] ${username} ${tender_uaid} ${type} ${type_id} ${question}
Switch browser ${username}
Open Tender
Click Element xpath=//a[contains(@href, '/tender/question-create?id=')]
Wait Until Page Contains Нове запитання до закупівлі 10
Run Keyword If '${type}' == 'tender' Select From List By Label xpath=//select[@id='questionform-related_of'] Закупівля
Run Keyword If '${type}' == 'lot' Select From List By Label xpath=//select[@id='questionform-related_of'] Лот
Run Keyword If '${type}' == 'lot' Click Element xpath=//select[@id='questionform-related_lot']
Run Keyword If '${type}' == 'lot' Click Element xpath=//select[@id='questionform-related_lot']//option[contains(text(), '${type_id}')]
Run Keyword If '${type}' == 'item' Select From List By Label xpath=//select[@id='questionform-related_of'] Предмет закупівлі
Run Keyword If '${type}' == 'item' Click Element xpath=//select[@id='questionform-related_item']
Run Keyword If '${type}' == 'item' Click Element xpath=//select[@id='questionform-related_item']//option[contains(text(), '${type_id}')]
Input text xpath=//input[contains(@id, 'questionform-title')] ${question.data.title}
Input text xpath=//textarea[contains(@id, 'questionform-description')] ${question.data.description}
Click Element xpath=//button[contains(text(), 'Задати питання')]
Sleep 1
Click Element xpath=//div[contains(@class, 'jconfirm')]//button[contains(text(), 'Закрити')]
Задати запитання на тендер
[Arguments] ${username} ${tender_uaid} ${question}
Задати запитання ${username} ${tender_uaid} tender null ${question}
Задати запитання на лот
[Arguments] ${username} ${tender_uaid} ${lot_id} ${question}
Задати запитання ${username} ${tender_uaid} lot ${lot_id} ${question}
Задати запитання на предмет
[Arguments] ${username} ${tender_uaid} ${item_id} ${question}
Задати запитання ${username} ${tender_uaid} item ${item_id} ${question}
Wait For Complaints Sync
Sleep 3
Reload Page
Page Should Not Contain Element xpath=//i[@class='fa fa-spin fa-refresh']
Створити вимогу
[Arguments] ${username} ${tender_uaid} ${type} ${type_id} ${claim} ${doc_name}
Switch browser ${username}
Open Tender
Capture Page Screenshot
Click Element xpath=//a[contains(@href, '/tender/complaint-create?id=')]
Wait Until Page Contains Element xpath=//div[contains(@class, 'complaint-create-form-wrapper')] 10
# fill complaintform
Run Keyword And Ignore Error Run Keyword If '${type}' == 'tender' Select From List By Label xpath=//select[@id='complaintform-related_of'] Закупівля
Run Keyword And Ignore Error Run Keyword If '${type}' == 'lot' Select From List By Label xpath=//select[@id='complaintform-related_of'] Лот
Run Keyword And Ignore Error Run Keyword If '${type}' == 'lot' Click Element xpath=//select[@id='complaintform-related_lot']
Run Keyword And Ignore Error Run Keyword If '${type}' == 'lot' Click Element xpath=//select[@id='complaintform-related_lot']//option[contains(text(), '${type_id}')]
Run Keyword And Ignore Error Select From List By Label xpath=//select[@id='complaintform-type'] Вимога
Run Keyword And Ignore Error Input text xpath=//input[contains(@id, 'complaintform-title')] ${claim.data.title}
Run Keyword And Ignore Error Input text xpath=//textarea[contains(@id, 'complaintform-description')] ${claim.data.description}
# fill awardcomplaintform
Run Keyword And Ignore Error Click Element jquery=#awardcomplaintform-award
Run Keyword And Ignore Error Click Element jquery=#awardcomplaintform-award option:first
Run Keyword And Ignore Error Select From List By Label xpath=//select[@id='awardcomplaintform-type'] Вимога
Run Keyword And Ignore Error Run Keyword If '${type}' == 'winner_complaint' Select From List By Label xpath=//select[@id='awardcomplaintform-type'] Скарга
Run Keyword And Ignore Error Input text xpath=//input[contains(@id, 'awardcomplaintform-title')] ${claim.data.title}
Run Keyword And Ignore Error Input text xpath=//textarea[contains(@id, 'awardcomplaintform-description')] ${claim.data.description}
# upload document
Run Keyword If '${doc_name}' != 'null' Click Element xpath=//a[contains(@data-url, '/tender/get-complaint-document-form')]
Run Keyword If '${doc_name}' != 'null' Wait Until Page Contains Element xpath=//input[@type='file'] 10
Run Keyword If '${doc_name}' != 'null' Choose File xpath=//input[@type='file'] ${doc_name}
Run Keyword If '${doc_name}' != 'null' Sleep 2
Click Element xpath=//button[contains(text(), 'Створити')]
Sleep 1
Click Element xpath=//div[contains(@class, 'jconfirm')]//button[contains(text(), 'Закрити')]
#
Open Tender
Switch To Complaints
${passed}= Run Keyword And Return Status Wait Until Keyword Succeeds 360 s 0 s Wait For Complaints Sync
Run Keyword Unless ${passed} Fatal Error Sync not completed in 360 sec
#
${return_value}= Get Element Attribute xpath=//div[@id='tender-complaint-list']//a[contains(@href,'#collapseComplaint')]@data-complaint-id
${return_value}= Convert To String ${return_value}
[return] ${return_value}
Створити вимогу про виправлення умов закупівлі
[Arguments] ${username} ${tender_uaid} ${claim} ${doc_name}
Run Keyword And Return Створити вимогу ${username} ${tender_uaid} tender null ${claim} ${doc_name}
Створити чернетку вимоги про виправлення умов закупівлі
[Arguments] ${username} ${tender_uaid} ${claim}
Run Keyword And Return Створити вимогу ${username} ${tender_uaid} tender null ${claim} null
Створити вимогу про виправлення умов лоту
[Arguments] ${username} ${tender_uaid} ${claim} ${lot_id} ${doc_name}
Run Keyword And Return Створити вимогу ${username} ${tender_uaid} lot ${lot_id} ${claim} ${doc_name}
Створити чернетку вимоги про виправлення умов лоту
[Arguments] ${username} ${tender_uaid} ${claim} ${lot_id}
Run Keyword And Return Створити вимогу ${username} ${tender_uaid} lot ${lot_id} ${claim} null
Створити вимогу про виправлення визначення переможця
[Arguments] ${username} ${tender_uaid} ${claim} ${proposal_id} ${doc_name}
Run Keyword And Return Створити вимогу ${username} ${tender_uaid} winner ${proposal_id} ${claim} ${doc_name}
Створити чернетку вимоги про виправлення визначення переможця
[Arguments] ${username} ${tender_uaid} ${claim} ${proposal_id}
Run Keyword And Return Створити вимогу ${username} ${tender_uaid} winner ${proposal_id} ${claim} null
Створити скаргу про виправлення визначення переможця
[Arguments] ${username} ${tender_uaid} ${claim} ${proposal_id} ${doc_name}
Run Keyword And Return Створити вимогу ${username} ${tender_uaid} winner_complaint ${proposal_id} ${claim} ${doc_name}
Скасувати вимогу
[Arguments] ${username} ${tender_uaid} ${claim_id} ${data} ${award_index}
Switch browser ${username}
Open Tender
Switch To Complaints
Collapse Complaint ${claim_id}
Click Element xpath=//div[@id='tender-complaint-list']//div[@data-complaint-id='${claim_id}']//a[contains(@href, '/tender/complaint-cancel?complaint=')]
Input text xpath=//textarea[contains(@id, 'complaintcancelform-cancellation_reason')] ${data.data.cancellationReason}
Capture Page Screenshot
Click Element xpath=//button[contains(text(), 'Відкликати')]
Sleep 1
Click Element xpath=//div[contains(@class, 'jconfirm')]//button[contains(text(), 'Закрити')]
Скасувати вимогу про виправлення умов закупівлі
[Arguments] ${username} ${tender_uaid} ${claim_id} ${data}
Скасувати вимогу ${username} ${tender_uaid} ${claim_id} ${data} null
Скасувати вимогу про виправлення умов лоту
[Arguments] ${username} ${tender_uaid} ${claim_id} ${data}
Скасувати вимогу ${username} ${tender_uaid} ${claim_id} ${data} null
Скасувати вимогу про виправлення визначення переможця
[Arguments] ${username} ${tender_uaid} ${claim_id} ${data} ${award_index}
Скасувати вимогу ${username} ${tender_uaid} ${claim_id} ${data} ${award_index}
Підтвердити вирішення вимоги
[Arguments] ${username} ${tender_uaid} ${type} ${type_id} ${claim} ${data} ${award_index}
Switch browser ${username}
${tender_id}= Get From Dictionary ${USERS.users['${playtender_LOGIN_USER}']} TENDER_ID
Open Tender
Go To ${BROKERS['playtender'].basepage}/tender/complaint-resolve?id=${tender_id}
Wait Until Page Contains Element xpath=//select[@id='complaintresolveform-complaint'] 10
Click Element xpath=//select[@id='complaintresolveform-complaint']
Click Element xpath=//select[@id='complaintresolveform-complaint']//option[@data-complaintid='${claim}']
#
Run Keyword If '${data.data.satisfied}' == 'True' Select From List By Label xpath=//select[@id='complaintresolveform-satisfied'] Задовільнена
Run Keyword If '${data.data.satisfied}' == 'False' Select From List By Label xpath=//select[@id='complaintresolveform-satisfied'] Не задовільнена
#
Click Element xpath=//button[contains(text(), 'Надати рішення')]
Sleep 1
Click Element xpath=//div[contains(@class, 'jconfirm')]//button[contains(text(), 'Закрити')]
Підтвердити вирішення вимоги про виправлення умов закупівлі
[Arguments] ${username} ${tender_uaid} ${claim} ${data}
Підтвердити вирішення вимоги ${username} ${tender_uaid} tender null ${claim} ${data} null
Підтвердити вирішення вимоги про виправлення умов лоту
[Arguments] ${username} ${tender_uaid} ${claim} ${data}
Підтвердити вирішення вимоги ${username} ${tender_uaid} lot null ${claim} ${data} null
Підтвердити вирішення вимоги про виправлення визначення переможця
[Arguments] ${username} ${tender_uaid} ${claim} ${data} ${award_index}
Підтвердити вирішення вимоги ${username} ${tender_uaid} award null ${claim} ${data} ${award_index}
Перетворити вимогу про виправлення умов закупівлі в скаргу
[Arguments] ${username} ${tender_uaid} ${claim_id} ${escalation_data}
Підтвердити вирішення вимоги ${username} ${tender_uaid} lot null ${claim_id} ${escalation_data} null
Перетворити вимогу про виправлення умов лоту в скаргу
[Arguments] ${username} ${tender_uaid} ${claim} ${data}
Підтвердити вирішення вимоги ${username} ${tender_uaid} lot null ${claim} ${data} null
Перетворити вимогу про виправлення визначення переможця в скаргу
[Arguments] ${username} ${tender_uaid} ${claim_id} ${escalation_data} ${award_index}
Підтвердити вирішення вимоги ${username} ${tender_uaid} award null ${claim_id} ${escalation_data} ${award_index}
Подати цінову пропозицію
[Arguments] ${username} ${tender_uaid} ${bid} ${lots_ids} ${features_ids}
${bid_data_keys}= Get Dictionary Keys ${bid.data}
Run Keyword If 'lotValues' in ${bid_data_keys} Подати цінову пропозицію Lots ${username} ${tender_uaid} ${bid} ${lots_ids} ${features_ids}
Run Keyword If 'lotValues' not in ${bid_data_keys} Подати цінову пропозицію No Lots ${username} ${tender_uaid} ${bid} ${lots_ids} ${features_ids}
Click Element xpath=//button[contains(text(), 'Подати пропозицію')]
Sleep 1
Click Element xpath=//div[contains(@class, 'jconfirm')]//button[contains(text(), 'Закрити')]
Sleep 2
Wait For All Transfer Complete
Скасувати цінову пропозицію
[Arguments] ${username} ${tender_uaid}
Switch browser ${username}
Open Tender
${canbedone}= run keyword and return status page should contain element jquery=.aside-part .js-bid-delete
run keyword if ${canbedone} fail Скасування неможливе
Click Element jquery=.aside-part .js-bid-delete
Sleep 1
Click Element xpath=//div[contains(@class, 'jconfirm-box')]//button[contains(text(), 'Так')]
wait until page contains Пропозиція скасована
Click Element xpath=//div[contains(@class, 'jconfirm')]//button[contains(text(), 'Закрити')]
Sleep 10
reload page
sleep 2
Подати цінову пропозицію Lots
[Arguments] ${username} ${tender_uaid} ${bid} ${lots_ids} ${features_ids}
Switch browser ${username}
${tender_id}= Get From Dictionary ${USERS.users['${playtender_LOGIN_USER}']} TENDER_ID
${bid_data_keys}= Get Dictionary Keys ${bid.data}
${lots}= Get From Dictionary ${bid.data} lotValues
${lots_length}= Get Length ${lots}
Open Tender
${procurementMethodType}= Отримати інформацію із тендера procurementMethodType
Go To ${BROKERS['playtender'].basepage}/tender/bid?id=${tender_id}
sleep 1
: FOR ${INDEX} IN RANGE 0 ${lots_length}
\ Set To Dictionary ${USERS.users['${playtender_LOGIN_USER}']} last_proposal_lotid=${lots[${INDEX}].relatedLot}
\ execute javascript robottesthelpfunctions.showlotbykey("${lots[${INDEX}].relatedLot}")
\ Sleep 1
\ Run Keyword And Ignore Error Подати цінову пропозицію Amount ${lots[${INDEX}].value.amount}
\ Run Keyword If '${procurementMethodType}' == 'esco' Подати цінову пропозицію Esco ${lots[${INDEX}].value}
\ Run Keyword If '${procurementMethodType}' != 'belowThreshold' Input text xpath=//div[contains(@class, 'active')]//textarea[contains(@id, '-subcontracting_details')] ${bid.data.tenderers[0].name}
\ Run Keyword If '${procurementMethodType}' != 'belowThreshold' Click Element xpath=//div[contains(@class, 'active')]//input[contains(@id, '-self_eligible')]
\ Run Keyword If '${procurementMethodType}' != 'belowThreshold' Click Element xpath=//div[contains(@class, 'active')]//input[contains(@id, '-self_qualified')]
\ Run Keyword If 'parameters' in ${bid_data_keys} Подати цінову пропозицію Features ${bid.data.parameters}
\ Run Keyword If '${procurementMethodType}' != 'belowThreshold' Run Keyword If '${procurementMethodType}' != 'aboveThresholdUA' Подати цінову пропозицію FakeDocs
Подати цінову пропозицію No Lots
[Arguments] ${username} ${tender_uaid} ${bid} ${lots_ids} ${features_ids}
Switch browser ${username}
${tender_id}= Get From Dictionary ${USERS.users['${playtender_LOGIN_USER}']} TENDER_ID
Open Tender
Go To ${BROKERS['playtender'].basepage}/tender/bid?id=${tender_id}
Sleep 2
${amount}= convert_float_to_string ${bid.data.value.amount}
Input text xpath=//input[contains(@id, '-value_amount')] ${amount}
Подати цінову пропозицію Amount
[Arguments] ${amount}
${amount}= convert_float_to_string ${amount}
Input text xpath=//div[contains(@class, 'active')]//input[contains(@id, '-value_amount')] ${amount}
Подати цінову пропозицію Esco
[Arguments] ${value}
${value_keys}= Get Dictionary Keys ${value}
run keyword and ignore error input text jquery=.tab-pane.js-lot-tab.active [id$='-contract_duration_years'] ${value.contractDuration.years}
run keyword and ignore error input text jquery=.tab-pane.js-lot-tab.active [id$='-contract_duration_days'] ${value.contractDuration.days}
run keyword if 'yearlyPaymentsPercentage' in ${value_keys} input float multiply100 .tab-pane.js-lot-tab.active [id$='-yearly_payments_percentage'] ${value.yearlyPaymentsPercentage}
run keyword if 'annualCostsReduction' in ${value_keys} Подати цінову пропозицію Esco AnnualCostsReduction ${value.annualCostsReduction}
Подати цінову пропозицію Esco AnnualCostsReduction
[Arguments] ${values}
${input_index}= set variable 1
: FOR ${value} IN @{values}
\ input float .tab-pane.js-lot-tab.active [id$='-annual_costs_reduction_${input_index}'] ${value}
\ ${input_index}= evaluate ${input_index} + 1
Подати цінову пропозицію Features
[Arguments] ${features}
${tender_id}= Get From Dictionary ${USERS.users['${playtender_LOGIN_USER}']} TENDER_ID
${features_length}= Get Length ${features}
: FOR ${INDEX} IN RANGE 0 ${features_length}
\ Run Keyword And Ignore Error Click Element xpath=//select[contains(@data-opid, '${features[${INDEX}]['code']}')]
\ Run Keyword And Ignore Error Click Element xpath=//select[contains(@data-opid, '${features[${INDEX}]['code']}')]//option[contains(@data-weight-source, '${features[${INDEX}]['value']}')]
Подати цінову пропозицію FakeDocs
${file_path} ${file_name} ${file_content}= create_fake_doc
${file_path_2} ${file_name_2} ${file_content_2}= create_fake_doc
Click Element xpath=//div[contains(@class, 'active')]//a[contains(@href, '#add-documents')]
Sleep 2
Choose File xpath=//div[contains(@class, 'active')]//div[contains(@class, 'active')]//input[@type='file'] ${file_path}
Sleep 2
Select From List By Label xpath=//div[contains(@class, 'active')]//div[contains(@class, 'active')]//select[contains(@id, '-document_type')] Підтвердження відповідності кваліфікаційним критеріям
Input text xpath=//div[contains(@class, 'active')]//div[contains(@class, 'active')]//textarea[contains(@id, '-description')] test
Sleep 1
Click Element xpath=//div[contains(@class, 'active')]//a[contains(@href, '#add-documents')]
Sleep 2
Choose File xpath=//div[contains(@class, 'active')]//div[contains(@class, 'active')]//input[@type='file'] ${file_path_2}
Sleep 2
${result}= Run Keyword And Return Status Select From List By Label xpath=//div[contains(@class, 'active')]//div[contains(@class, 'active')]//select[contains(@id, '-document_type')] Кошторис
Run Keyword If ${result} == False Select From List By Value xpath=//div[contains(@class, 'active')]//div[contains(@class, 'active')]//select[contains(@id, '-document_type')] technicalSpecifications
Input text xpath=//div[contains(@class, 'active')]//div[contains(@class, 'active')]//textarea[contains(@id, '-description')] test2
Sleep 1
Start Edit Proposal
${no_lotid}= Run Keyword And Return Status Dictionary Should Not Contain Key ${USERS.users['${playtender_LOGIN_USER}']} last_proposal_lotid
Sync Tender
Run Keyword If ${no_lotid} == True Start Edit Proposal Whole
Run Keyword If ${no_lotid} == False Start Edit Proposal Lot
Sleep 2
Start Edit Proposal Whole
${tender_id}= Get From Dictionary ${USERS.users['${playtender_LOGIN_USER}']} TENDER_ID
Go To ${BROKERS['playtender'].basepage}/tender/bid?id=${tender_id}
Start Edit Proposal Lot
${tender_id}= Get From Dictionary ${USERS.users['${playtender_LOGIN_USER}']} TENDER_ID
${last_proposal_lotid}= Get From Dictionary ${USERS.users['${playtender_LOGIN_USER}']} last_proposal_lotid
Go To ${BROKERS['playtender'].basepage}/tender/bid?id=${tender_id}\#showlotbykey:${last_proposal_lotid}
Save Proposal
Click Element xpath=//button[contains(text(), 'Редагувати пропозицію')]
Sleep 1
Click Element xpath=//div[contains(@class, 'jconfirm')]//button[contains(text(), 'Закрити')]
Sleep 2
Wait For All Transfer Complete
Завантажити документ в ставку
[Arguments] ${username} @{arguments}
[Documentation]
... ${arguments[0]} == file_path
... ${arguments[1]} == tender_uaid
... ${arguments[2]} == doc_type
... ${arguments[3]} == doc_name
Switch browser ${username}
Start Edit Proposal
${no_lotid}= Run Keyword And Return Status Dictionary Should Not Contain Key ${USERS.users['${playtender_LOGIN_USER}']} last_proposal_lotid
#
Run Keyword If ${no_lotid} == False Click Element xpath=//div[contains(@class, 'active')]//a[contains(@href, '#add-documents')]
Run Keyword If ${no_lotid} == True Click Element xpath=//a[contains(@href, '#add-documents')]
Sleep 2
Run Keyword If ${no_lotid} == False Choose File xpath=//div[contains(@class, 'active')]//div[contains(@class, 'active')]//input[@type='file'] ${arguments[0]}
Run Keyword If ${no_lotid} == True Choose File xpath=//div[contains(@class, 'active')]//input[@type='file'] ${arguments[0]}
Sleep 2
@{f_name}= Split String From Right ${arguments[0]} / 1
Wait Until Page Contains ${f_name[1]} 20
Run Keyword If ${no_lotid} == False Select From List By Label xpath=//div[contains(@class, 'active')]//div[contains(@class, 'active')]//select[contains(@id, '-document_type')] Технічний опис предмету закупівлі
Run Keyword If ${no_lotid} == True Select From List By Label xpath=//div[contains(@class, 'active')]//select[contains(@id, '-document_type')] Технічний опис предмету закупівлі
Run Keyword If ${no_lotid} == False Run Keyword And Ignore Error Run Keyword If '${arguments[2]}' == 'financial_documents' Select From List By Label xpath=//div[contains(@class, 'active')]//div[contains(@class, 'active')]//select[contains(@id, '-document_type')] Цінова пропозиція
Run Keyword If ${no_lotid} == True Run Keyword And Ignore Error Run Keyword If '${arguments[2]}' == 'financial_documents' Select From List By Label xpath=//div[contains(@class, 'active')]//select[contains(@id, '-document_type')] Цінова пропозиція
Run Keyword If ${no_lotid} == False Run Keyword And Ignore Error Run Keyword If '${arguments[2]}' == 'qualification_documents' Select From List By Label xpath=//div[contains(@class, 'active')]//div[contains(@class, 'active')]//select[contains(@id, '-document_type')] Підтвердження відповідності кваліфікаційним критеріям
Run Keyword If ${no_lotid} == True Run Keyword And Ignore Error Run Keyword If '${arguments[2]}' == 'qualification_documents' Select From List By Label xpath=//div[contains(@class, 'active')]//select[contains(@id, '-document_type')] Підтвердження відповідності кваліфікаційним критеріям
Run Keyword If ${no_lotid} == False Run Keyword And Ignore Error Run Keyword If '${arguments[2]}' == 'eligibility_documents' Select From List By Label xpath=//div[contains(@class, 'active')]//div[contains(@class, 'active')]//select[contains(@id, '-document_type')] Документи, що підтверджують відповідність (в тому числі, відповідність вимогам ст. 17)
Run Keyword If ${no_lotid} == True Run Keyword And Ignore Error Run Keyword If '${arguments[2]}' == 'eligibility_documents' Select From List By Label xpath=//div[contains(@class, 'active')]//select[contains(@id, '-document_type')] Документи, що підтверджують відповідність (в тому числі, відповідність вимогам ст. 17)
Run Keyword If ${no_lotid} == False Input text xpath=//div[contains(@class, 'active')]//div[contains(@class, 'active')]//textarea[contains(@id, '-description')] test
Run Keyword If ${no_lotid} == True Input text xpath=//div[contains(@class, 'active')]//textarea[contains(@id, '-description')] test
Sleep 1
Save Proposal
Змінити документ в ставці
[Arguments] ${username} ${tender_uaid} ${file_path} ${doc_id}
Switch browser ${username}
Start Edit Proposal
${no_lotid}= Run Keyword And Return Status Dictionary Should Not Contain Key ${USERS.users['${playtender_LOGIN_USER}']} last_proposal_lotid
#
Run Keyword If ${no_lotid} == False Run Keyword And Ignore Error Click Element xpath=//div[contains(@class, 'active')]//li[contains(@data-title, '${doc_id}')]
Run Keyword If ${no_lotid} == True Run Keyword And Ignore Error Click Element xpath=//li[contains(@data-title, '${doc_id}')]
Run Keyword If ${no_lotid} == False Run Keyword And Ignore Error Click Element xpath=//div[contains(@class, 'active')]//li[contains(@data-titles, '${doc_id}')]
Run Keyword If ${no_lotid} == True Run Keyword And Ignore Error Click Element xpath=//li[contains(@data-titles, '${doc_id}')]
Sleep 1
Run Keyword If ${no_lotid} == False Choose File xpath=//div[contains(@class, 'active')]//div[contains(@class, 'active')]//input[@type='file'] ${file_path}
Run Keyword If ${no_lotid} == True Choose File xpath=//div[contains(@class, 'active')]//input[@type='file'] ${file_path}
Sleep 2
Save Proposal
Змінити документацію в ставці
[Arguments] ${username} ${tender_uaid} ${data} ${doc_id}
Switch browser ${username}
Start Edit Proposal
Run Keyword And Ignore Error Click Element xpath=//div[contains(@class, 'active')]//li[contains(@data-title, '${doc_id}')]
Run Keyword And Ignore Error Click Element xpath=//div[contains(@class, 'active')]//li[contains(@data-titles, '${doc_id}')]
Sleep 1
Run Keyword And Ignore Error Click Element xpath=//div[contains(@class, 'active')]//div[contains(@class, 'active')]//input[contains(@id, '-confidentiality')]
Run Keyword And Ignore Error Click Element xpath=//div[contains(@class, 'active')]//div[contains(@class, 'active')]//input[contains(@id, '-is_description_decision')]
Sleep 1
Run Keyword And Ignore Error Input text xpath=//div[contains(@class, 'active')]//div[contains(@class, 'active')]//textarea[contains(@id, '-confidentiality_rationale')] ${data.data.confidentialityRationale}
Sleep 1
Save Proposal
Змінити цінову пропозицію
[Arguments] ${username} ${tender_uaid} ${field} ${value}
Switch browser ${username}
Start Edit Proposal
${procurementMethodType}= Отримати інформацію із тендера procurementMethodType
Run Keyword If '${field}' == 'lotValues[0].value.amount' and '${procurementMethodType}' != 'esco' Подати цінову пропозицію Amount ${value}
Sleep 1
Save Proposal
Завантажити документ рішення кваліфікаційної комісії
[Arguments] ${username} ${doc_name} ${tender_uaid} ${award_index}
Switch browser ${username}
## copy file to another dir to prevent it deleting
${new_doc_name}= Replace String ${doc_name} /tmp/ /tmp/playtender/
Copy File ${doc_name} ${new_doc_name}
Set To Dictionary ${USERS.users['${playtender_LOGIN_USER}']} qproposal${award_index}_document=${new_doc_name}
Підтвердити постачальника
[Arguments] ${username} ${tender_uaid} ${award_index}
Switch browser ${username}
${doc_isset}= GetDictionaryKeyExist ${USERS.users['${playtender_LOGIN_USER}']} qproposal${award_index}_document
${doc_name}= Run Keyword If ${doc_isset} GetValueFromDictionaryByKey ${USERS.users['${playtender_LOGIN_USER}']} qproposal${award_index}_document
... ELSE GenerateFakeDocument
Відкрити форму кваліфікації переможця і потрібну кваліфікацію 0
# handle sign not loaded
: FOR ${INDEX} IN RANGE 0 10
\ run keyword if ${INDEX} != 0 reload page
\ select from list by value xpath=//select[@id='qualificationform-decision'] accept
\ JsSetScrollToElementBySelector \#qualification-documents
\ run keyword if ${INDEX} == 0 Choose File xpath=//input[@type='file'] ${doc_name}
\ run keyword if ${INDEX} == 0 Sleep 2
\ JsSetScrollToElementBySelector .tab-pane.active [id$='-document_type']
\ run keyword if ${INDEX} == 0 Select From List By Label jquery=.tab-pane.active [id$='-document_type'] Повідомлення про рішення
\ Run Keyword And Ignore Error Click Element id=qualificationform-eligible
\ Run Keyword And Ignore Error Click Element id=qualificationform-qualified
\ ${passed}= run keyword and return status Підтвердити рішення кваліфікації переможця
\ run keyword if ${passed} == True Open Tender
\ run keyword if ${passed} == False sleep 30
\ exit for loop if ${passed} == True
Дискваліфікувати постачальника
[Arguments] ${username} ${tender_uaid} ${award_index}
Switch browser ${username}
${doc_isset}= GetDictionaryKeyExist ${USERS.users['${playtender_LOGIN_USER}']} qproposal${award_index}_document
${doc_name}= Run Keyword If ${doc_isset} GetValueFromDictionaryByKey ${USERS.users['${playtender_LOGIN_USER}']} qproposal${award_index}_document
... ELSE GenerateFakeDocument
Відкрити форму кваліфікації переможця і потрібну кваліфікацію 0
Select From List By Value id=qualificationform-decision decline
Run Keyword And Ignore Error Click Element id=qualificationform-title
Run Keyword And Ignore Error Click Element jquery=#qualificationform-title option.js-cancel:first
Run Keyword And Ignore Error Input text id=qualificationform-description GenerateFakeText
JsSetScrollToElementBySelector \#qualification-documents
Choose File xpath=//input[@type='file'] ${doc_name}
Sleep 2
JsSetScrollToElementBySelector .tab-pane.active [id$='-document_type']
Select From List By Label jquery=.tab-pane.active [id$='-document_type'] Повідомлення про рішення
Підтвердити рішення кваліфікації переможця
Open Tender
Скасування рішення кваліфікаційної комісії
[Arguments] ${username} ${tender_uaid} ${award_index}
Switch browser ${username}
Відкрити форму кваліфікації переможця і потрібну кваліфікацію 0
Select From List By Label xpath=//select[@id='qualificationform-decision'] Скасувати рішення
Run Keyword And Ignore Error Click Element id=qualificationform-title
Run Keyword And Ignore Error Click Element jquery=#qualificationform-title option.js-cancel:first
Run Keyword And Ignore Error Input text id=qualificationform-description GenerateFakeText
Підтвердити рішення кваліфікації переможця
Open Tender
Відкрити форму кваліфікації переможця і потрібну кваліфікацію
[Arguments] ${proposal_index}
Open Tender
WaitTenderAuctionEnd 3600
Click Element xpath=//div[contains(@class, 'aside-menu ')]//a[contains(@href, '/tender/qualification?id=')]
Wait Until Page Contains Кваліфікація 10
Click Element id=qualificationform-award
Click Element jquery=select#qualificationform-award option:eq(${proposal_index})
Sleep 2
JsSetScrollToElementBySelector \#qualificationform-decision
Підтвердити рішення кваліфікації переможця
JsSetScrollToElementBySelector \#tender-qualification-form .js-submit-btn
Click Button jquery=#tender-qualification-form .js-submit-btn
Wait Until Page Contains Element xpath=//div[contains(@class, 'jconfirm')]//*[text()='Закрити'] 20
Click Button xpath=//div[contains(@class, 'jconfirm')]//*[text()='Закрити']
Sleep 2
# check if eds is needed
${eds_isset}= run keyword and return status Click Button xpath=//*[text()='Накласти ЕЦП']
run keyword if ${eds_isset} Накласти ЕЦП на відкритий попап та закрити його
run keyword if ${eds_isset} JsSetScrollToElementBySelector \#tender-qualification-form .js-submit-btn
run keyword if ${eds_isset} Click Button jquery=#tender-qualification-form .js-submit-btn
run keyword if ${eds_isset} Wait Until Page Contains Element xpath=//div[contains(@class, 'jconfirm')]//*[text()='Закрити'] 20
run keyword if ${eds_isset} Click Button xpath=//div[contains(@class, 'jconfirm')]//*[text()='Закрити']
run keyword if ${eds_isset} Sleep 3
Накласти ЕЦП на відкритий попап та закрити його
Sleep 1
Load Sign
Wait Until Page Contains ЕЦП успішно накладено 20
Click Button xpath=//div[contains(@class, 'jconfirm')]//*[text()='Закрити']
Sleep 3
# --------------------------------------------------------- #
Отримати інформацію із тендера
[Arguments] @{arguments}
[Documentation]
... ${arguments[0]} == username
... ${arguments[1]} == tender_uaid
... ${arguments[2]} == fieldname
Switch browser ${arguments[0]}
# Log To Console ''
# Log To Console Отримати інформацію із тендера
# Log To Console ${arguments[1]}
# Log To Console ${arguments[2]}
${current_tender_uaid}= Отримати інформацію із тендера tenderID
Run Keyword And Return If 'NBUdiscountRate' == '${arguments[2]}' Get number from text by locator jquery=#tender-general-info .nbu-discount-rate .value
Run Keyword And Return If 'auctionPeriod.startDate' == '${arguments[2]}' get_invisible_text jquery=.timeline-info-wrapper .auction-start-date
Run Keyword And Return If 'lots[0].value.amount' == '${arguments[2]}' Get invisible text number by locator jquery=#accordionLots .lot-info-wrapper:first .budget-source.hidden
Run Keyword And Return If 'lots[0].auctionPeriod.startDate' == '${arguments[2]}' get_invisible_text jquery=#accordionLots .lot-info-wrapper:first .auction-period-start-date.hidden
Run Keyword And Return If 'lots[0].auctionPeriod.endDate' == '${arguments[2]}' get_invisible_text jquery=#accordionLots .lot-info-wrapper:first .auction-period-end-date.hidden
Run Keyword And Return If 'auctionPeriod.endDate' == '${arguments[2]}' get_invisible_text jquery=.timeline-info-wrapper .auction-end-date
Run Keyword And Return If 'lots[0].minimalStepPercentage' == '${arguments[2]}' Get invisible text number by locator jquery=#accordionLots .lot-info-wrapper:first .minimal-step-percentage-source.hidden
Run Keyword And Return If 'lots[0].fundingKind' == '${arguments[2]}' get_invisible_text jquery=#accordionLots .lot-info-wrapper:first .funding-kind-source.hidden
Run Keyword And Return If 'lots[0].yearlyPaymentsPercentageRange' == '${arguments[2]}' Get invisible text number by locator jquery=#accordionLots .lot-info-wrapper:first .yearly-payments-percentage-range-source.hidden
Run Keyword And Return If 'deliveryLocation.longitude' == '${arguments[2]}' Fail Не реалізований функціонал
Run Keyword And Return If 'deliveryLocation.latitude' == '${arguments[2]}' Fail Не реалізований функціонал
Run Keyword And Return If 'tenderPeriod.startDate' == '${arguments[2]}' Отримати інформацію із тендера tenderPeriod.startDate
Run Keyword And Return If 'tenderPeriod.endDate' == '${arguments[2]}' Отримати інформацію із тендера tenderPeriod.endDate
Run Keyword And Return If 'procurementMethodType' == '${arguments[2]}' Отримати інформацію із тендера procurementMethodType
Run Keyword And Return If 'value.amount' == '${arguments[2]}' Отримати інформацію із тендера value.amount
Run Keyword If 'status' == '${arguments[2]}' and '${current_tender_uaid}' != '${arguments[1]}' Reload Page
Run Keyword If 'status' == '${arguments[2]}' and '${current_tender_uaid}' != '${arguments[1]}' Sleep 3
Run Keyword And Return If 'status' == '${arguments[2]}' and '${current_tender_uaid}' != '${arguments[1]}' get_invisible_text xpath=//*[contains(@class, 'hidden stage2.opstatus')]
Run Keyword And Return If 'status' == '${arguments[2]}' Отримати інформацію із тендера status
Run Keyword And Return If 'enquiryPeriod.startDate' == '${arguments[2]}' get_invisible_text jquery=.timeline-info-wrapper .enquiry-period-start-date.hidden
Run Keyword And Return If 'enquiryPeriod.endDate' == '${arguments[2]}' get_invisible_text jquery=.timeline-info-wrapper .enquiry-period-end-date.hidden
Run Keyword And Return If 'complaintPeriod.startDate' == '${arguments[2]}' Отримати інформацію із тендера complaintPeriod.startDate
Run Keyword And Return If 'complaintPeriod.endDate' == '${arguments[2]}' Отримати інформацію із тендера complaintPeriod.endDate
Run Keyword And Return If 'title' == '${arguments[2]}' Отримати інформацію із тендера title
Run Keyword And Return If 'description' == '${arguments[2]}' Отримати інформацію із тендера description
Run Keyword And Return If 'value.currency' == '${arguments[2]}' Отримати інформацію із тендера value.currency
Run Keyword And Return If 'value.valueAddedTaxIncluded' == '${arguments[2]}' Отримати інформацію із тендера value.valueAddedTaxIncluded
Run Keyword And Return If 'tenderID' == '${arguments[2]}' Отримати інформацію із тендера tenderID
Run Keyword And Return If 'stage2TenderID' == '${arguments[2]}' Отримати інформацію із тендера stage2tenderID
Run Keyword And Return If 'procuringEntity.name' == '${arguments[2]}' Отримати інформацію із тендера procuringEntity.name
Run Keyword And Return If 'minimalStep.amount' == '${arguments[2]}' Отримати інформацію із тендера minimalStep.amount
Run Keyword And Return If 'bids' == '${arguments[2]}' Fail Unable to see bids
Run Keyword And Return If 'qualifications[0].status' == '${arguments[2]}' Отримати інформацію із тендера qualifications[0].status
Run Keyword And Return If 'qualifications[1].status' == '${arguments[2]}' Отримати інформацію із тендера qualifications[1].status
Run Keyword If 'qualificationPeriod.endDate' == '${arguments[2]}' Open Tender
Run Keyword And Return If 'qualificationPeriod.endDate' == '${arguments[2]}' Отримати інформацію із тендера qualificationPeriod.endDate
Run Keyword And Return If 'questions[0].title' == '${arguments[2]}' Отримати інформацію із тендера questions[0].title ${arguments[0]} ${arguments[1]}
Run Keyword And Return If 'procuringEntity.identifier.id' == '${arguments[2]}' Get invisible text by locator jquery=div#procuringentityinfo p.identifier-code
Run Keyword And Return If 'procuringEntity.identifier.legalName' == '${arguments[2]}' Get text by locator jquery=div#procuringentityinfo p.legal-name .value
Run Keyword And Return If 'procuringEntity.address.region' == '${arguments[2]}' Get invisible text by locator jquery=div#procuringentityinfo p.region
Run Keyword And Return If 'procuringEntity.address.locality' == '${arguments[2]}' Get invisible text by locator jquery=div#procuringentityinfo p.locality
Run Keyword And Return If 'procuringEntity.address.streetAddress' == '${arguments[2]}' Get invisible text by locator jquery=div#procuringentityinfo p.street-address
Run Keyword And Return If 'procuringEntity.contactPoint.name' == '${arguments[2]}' Get text by locator jquery=div#procuringentitycontactpointinfo p.name span.value
Run Keyword And Return If 'procuringEntity.contactPoint.email' == '${arguments[2]}' Get text by locator jquery=div#procuringentitycontactpointinfo p.email span.value
Run Keyword And Return If 'procuringEntity.contactPoint.telephone' == '${arguments[2]}' Get text by locator jquery=div#procuringentitycontactpointinfo p.phone span.value
Run Keyword And Return If 'procuringEntity.contactPoint.faxNumber' == '${arguments[2]}' Get text by locator jquery=div#procuringentitycontactpointinfo p.fax span.value
Run Keyword And Return If 'procuringEntity.contactPoint.url' == '${arguments[2]}' Get text by locator jquery=div#procuringentitycontactpointinfo p.website span.value
# awards complaint end date
Run Keyword If 'awards[0].complaintPeriod.endDate' == '${arguments[2]}' Open Tender
${Result}= Run Keyword And Return Status Page Should Contain Element jquery=div.award-list-wrapper .panel-heading:eq(0) a[data-toggle="collapse"]
Run Keyword If 'awards[0].complaintPeriod.endDate' == '${arguments[2]}' and ${RESULT} JsOpenAwardByIndex 0
Run Keyword If 'awards[0].complaintPeriod.endDate' == '${arguments[2]}' and ${RESULT} JsSetScrollToElementBySelector div.award-list-wrapper
Run Keyword And Return If 'awards[0].complaintPeriod.endDate' == '${arguments[2]}' and ${RESULT} Get text date by locator jquery=div.award-list-wrapper .panel-collapse.collapse.in p.complaint-period span.end-date
${Result}= Run Keyword And Return Status Page Should Contain Element jquery=#tender-contract-form .js-award-complaint-period-wrapper span.end-date
Run Keyword And Return If 'awards[0].complaintPeriod.endDate' == '${arguments[2]}' and ${RESULT} Get text date by locator jquery=#tender-contract-form .js-award-complaint-period-wrapper span.end-date
# nego viewer
Run Keyword And Return If 'cause' == '${arguments[2]}' Get invisible text by locator jquery=div.tender-info-wrapper p.cause-source
Run Keyword And Return If 'causeDescription' == '${arguments[2]}' Get text by locator jquery=div.tender-info-wrapper p.cause-description span.value
Run Keyword And Return If 'procuringEntity.address.countryName' == '${arguments[2]}' Get invisible text by locator jquery=div#procuringentityinfo p.country
Run Keyword And Return If 'procuringEntity.address.postalCode' == '${arguments[2]}' Get invisible text by locator jquery=div#procuringentityinfo p.postalcode
Run Keyword And Return If 'procuringEntity.identifier.scheme' == '${arguments[2]}' Get invisible text by locator jquery=div#procuringentityinfo p.identifier-scheme
Run Keyword If 'documents[0].title' == '${arguments[2]}' JsOpenDocumentByIndex 0
Run Keyword And Return If 'documents[0].title' == '${arguments[2]}' Get invisible text by locator jquery=#documents .panel-collapse.in .document-info-wrapper p.title
Run Keyword If 'awards[0].documents[0].title' == '${arguments[2]}' JsOpenAwardByIndex 0
Run Keyword And Return If 'awards[0].documents[0].title' == '${arguments[2]}' Get text by locator jquery=.award-list-wrapper .panel-collapse.in .award-info-wrapper p.documents + ul.value li:eq(0) a
Run Keyword If 'awards[0].status' == '${arguments[2]}' JsOpenAwardByIndex 0
Run Keyword And Return If 'awards[0].status' == '${arguments[2]}' Get invisible text by locator jquery=.award-list-wrapper .panel-collapse.in .award-info-wrapper p.status-source
Run Keyword If 'awards[0].suppliers[0].address.countryName' == '${arguments[2]}' JsOpenAwardByIndex 0
Run Keyword And Return If 'awards[0].suppliers[0].address.countryName' == '${arguments[2]}' Get invisible text by locator jquery=.award-list-wrapper .panel-collapse.in .award-info-wrapper p.organization-country
Run Keyword If 'awards[0].suppliers[0].address.locality' == '${arguments[2]}' JsOpenAwardByIndex 0
Run Keyword And Return If 'awards[0].suppliers[0].address.locality' == '${arguments[2]}' Get invisible text by locator jquery=.award-list-wrapper .panel-collapse.in .award-info-wrapper p.organization-locality
Run Keyword If 'awards[0].suppliers[0].address.postalCode' == '${arguments[2]}' JsOpenAwardByIndex 0
Run Keyword And Return If 'awards[0].suppliers[0].address.postalCode' == '${arguments[2]}' Get invisible text by locator jquery=.award-list-wrapper .panel-collapse.in .award-info-wrapper p.organization-postcode
Run Keyword If 'awards[0].suppliers[0].address.region' == '${arguments[2]}' JsOpenAwardByIndex 0
Run Keyword And Return If 'awards[0].suppliers[0].address.region' == '${arguments[2]}' Get invisible text by locator jquery=.award-list-wrapper .panel-collapse.in .award-info-wrapper p.organization-region
Run Keyword If 'awards[0].suppliers[0].address.streetAddress' == '${arguments[2]}' JsOpenAwardByIndex 0
Run Keyword And Return If 'awards[0].suppliers[0].address.streetAddress' == '${arguments[2]}' Get invisible text by locator jquery=.award-list-wrapper .panel-collapse.in .award-info-wrapper p.organization-street-address
Run Keyword If 'awards[0].suppliers[0].contactPoint.telephone' == '${arguments[2]}' JsOpenAwardByIndex 0
Run Keyword And Return If 'awards[0].suppliers[0].contactPoint.telephone' == '${arguments[2]}' Get invisible text by locator jquery=.award-list-wrapper .panel-collapse.in .award-info-wrapper p.organization-contact-point-phone
Run Keyword If 'awards[0].suppliers[0].contactPoint.email' == '${arguments[2]}' JsOpenAwardByIndex 0
Run Keyword And Return If 'awards[0].suppliers[0].contactPoint.email' == '${arguments[2]}' Get invisible text by locator jquery=.award-list-wrapper .panel-collapse.in .award-info-wrapper p.organization-contact-point-email
Run Keyword If 'awards[0].suppliers[0].identifier.scheme' == '${arguments[2]}' JsOpenAwardByIndex 0
Run Keyword And Return If 'awards[0].suppliers[0].identifier.scheme' == '${arguments[2]}' Get invisible text by locator jquery=.award-list-wrapper .panel-collapse.in .award-info-wrapper p.organization-scheme
Run Keyword If 'awards[0].suppliers[0].identifier.legalName' == '${arguments[2]}' JsOpenAwardByIndex 0
Run Keyword And Return If 'awards[0].suppliers[0].identifier.legalName' == '${arguments[2]}' Get invisible text by locator jquery=.award-list-wrapper .panel-collapse.in .award-info-wrapper p.organization-legal-name
Run Keyword If 'awards[0].suppliers[0].name' == '${arguments[2]}' JsOpenAwardByIndex 0
Run Keyword And Return If 'awards[0].suppliers[0].name' == '${arguments[2]}' Get invisible text by locator jquery=.award-list-wrapper .panel-collapse.in .award-info-wrapper p.organization-name
Run Keyword If 'awards[0].suppliers[0].identifier.id' == '${arguments[2]}' JsOpenAwardByIndex 0
Run Keyword And Return If 'awards[0].suppliers[0].identifier.id' == '${arguments[2]}' Get invisible text by locator jquery=.award-list-wrapper .panel-collapse.in .award-info-wrapper p.organization-code
Run Keyword If 'awards[0].value.valueAddedTaxIncluded' == '${arguments[2]}' JsOpenAwardByIndex 0
Run Keyword And Return If 'awards[0].value.valueAddedTaxIncluded' == '${arguments[2]}' Get invisible text boolean by locator jquery=.award-list-wrapper .panel-collapse.in .award-info-wrapper p.budget-tax-included
Run Keyword If 'awards[0].value.currency' == '${arguments[2]}' JsOpenAwardByIndex 0
Run Keyword And Return If 'awards[0].value.currency' == '${arguments[2]}' Get invisible text by locator jquery=.award-list-wrapper .panel-collapse.in .award-info-wrapper p.budget-currency
Run Keyword If 'awards[0].value.amount' == '${arguments[2]}' JsOpenAwardByIndex 0
Run Keyword And Return If 'awards[0].value.amount' == '${arguments[2]}' Get invisible text number by locator jquery=.award-list-wrapper .panel-collapse.in .award-info-wrapper p.budget-amount
Run Keyword If 'awards[1].value.amount' == '${arguments[2]}' JsOpenAwardByIndex 1
Run Keyword And Return If 'awards[1].value.amount' == '${arguments[2]}' Get invisible text number by locator jquery=.award-list-wrapper .panel-collapse.in .award-info-wrapper p.budget-amount
Run Keyword If 'awards[2].value.amount' == '${arguments[2]}' JsOpenAwardByIndex 2
Run Keyword And Return If 'awards[2].value.amount' == '${arguments[2]}' Get invisible text number by locator jquery=.award-list-wrapper .panel-collapse.in .award-info-wrapper p.budget-amount
Run Keyword If 'awards[0].suppliers[0].contactPoint.name' == '${arguments[2]}' JsOpenAwardByIndex 0
Run Keyword And Return If 'awards[0].suppliers[0].contactPoint.name' == '${arguments[2]}' Get invisible text by locator jquery=.award-list-wrapper .panel-collapse.in .award-info-wrapper p.organization-contact-point-name
Run Keyword If 'contracts[0].status' == '${arguments[2]}' JsOpenContractByIndex 0
Run Keyword And Return If 'contracts[0].status' == '${arguments[2]}' Get invisible text by locator jquery=#accordionContracts .panel-collapse.in .contract-info-wrapper p.status-source
${contract1NeedToBeVisible}= Run Keyword And Return Status Should Start With ${arguments[2]} contracts[1]
Run Keyword If ${contract1NeedToBeVisible} Execute JavaScript robottesthelpfunctions.showcontractbyindex(1);
Run Keyword If ${contract1NeedToBeVisible} Sleep 2
Run Keyword And Return If 'contracts[1].dateSigned' == '${arguments[2]}' Get invisible text by locator jquery=#accordionContracts .panel-collapse.in .contract-info-wrapper p.date-signed-source.hidden
Run Keyword And Return If 'contracts[1].period.startDate' == '${arguments[2]}' Get invisible text by locator jquery=#accordionContracts .panel-collapse.in .contract-info-wrapper p.period-start-date.hidden
Run Keyword And Return If 'contracts[1].period.endDate' == '${arguments[2]}' Get invisible text by locator jquery=#accordionContracts .panel-collapse.in .contract-info-wrapper p.period-end-date.hidden
Run Keyword And Return If 'contracts[1].status' == '${arguments[2]}' Get invisible text by locator jquery=#accordionContracts .panel-collapse.in .contract-info-wrapper p.status-source
#
Run Keyword If 'items[0].description' == '${arguments[2]}' Open Tender
Run Keyword If 'items[0].description' == '${arguments[2]}' Execute JavaScript robottesthelpfunctions.showitembyindex(0);
Run Keyword If 'items[0].description' == '${arguments[2]}' Sleep 2
Run Keyword And Return If 'items[0].description' == '${arguments[2]}' Get Text jquery=div[id^='accordionItems']:visible .panel-item-collapse.in .item-info-wrapper p.title .value
# lots
Run Keyword And Return If 'lots[0].title' == '${arguments[2]}' execute javascript return $(robottesthelpfunctions.getlotwrapperbyindex(0)).attr('data-title');
Run Keyword And Return If 'lots[1].title' == '${arguments[2]}' execute javascript return $(robottesthelpfunctions.getlotwrapperbyindex(1)).attr('data-title');
${item0NeedToBeVisible}= Run Keyword And Return Status Should Start With ${arguments[2]} items[0]
Run Keyword If ${item0NeedToBeVisible} Execute JavaScript robottesthelpfunctions.showitembyindex(0);
Run Keyword If ${item0NeedToBeVisible} Sleep 2
Run Keyword And Return If 'items[0].classification.scheme' == '${arguments[2]}' get_invisible_text jquery=div[id^='accordionItems']:visible .panel-item-collapse.in .item-info-wrapper .main-classification-scheme
Run Keyword And Return If 'items[0].classification.id' == '${arguments[2]}' get_invisible_text jquery=div[id^='accordionItems']:visible .panel-item-collapse.in .item-info-wrapper .main-classification-code
Run Keyword And Return If 'items[0].classification.description' == '${arguments[2]}' get_invisible_text jquery=div[id^='accordionItems']:visible .panel-item-collapse.in .item-info-wrapper .main-classification-description
Run Keyword And Return If 'items[0].additionalClassifications[0].scheme' == '${arguments[2]}' get_invisible_text jquery=div[id^='accordionItems']:visible .panel-item-collapse.in .item-info-wrapper .additional-classification-scheme.hidden:first
Run Keyword And Return If 'items[0].additionalClassifications[0].id' == '${arguments[2]}' get_invisible_text jquery=div[id^='accordionItems']:visible .panel-item-collapse.in .item-info-wrapper .additional-classification-code.hidden:first
Run Keyword And Return If 'items[0].additionalClassifications[0].description' == '${arguments[2]}' get_invisible_text jquery=div[id^='accordionItems']:visible .panel-item-collapse.in .item-info-wrapper .additional-classification-description.hidden:first
Run Keyword And Return If 'items[0].quantity' == '${arguments[2]}' Get invisible text number by locator jquery=div[id^='accordionItems']:visible .panel-item-collapse.in .item-info-wrapper .quantity-source
Run Keyword And Return If 'items[0].unit.name' == '${arguments[2]}' get_invisible_text jquery=div[id^='accordionItems']:visible .panel-item-collapse.in .item-info-wrapper .unit-title-source
Run Keyword And Return If 'items[0].unit.code' == '${arguments[2]}' get_invisible_text jquery=div[id^='accordionItems']:visible .panel-item-collapse.in .item-info-wrapper .unit-code-source
Run Keyword And Return If 'items[0].deliveryDate.startDate' == '${arguments[2]}' get_invisible_text jquery=div[id^='accordionItems']:visible .panel-item-collapse.in .item-info-wrapper .delivery-start-date-source.hidden
Run Keyword And Return If 'items[0].deliveryDate.endDate' == '${arguments[2]}' get_invisible_text jquery=div[id^='accordionItems']:visible .panel-item-collapse.in .item-info-wrapper .delivery-end-date-source.hidden
Run Keyword And Return If 'items[0].deliveryAddress.countryName' == '${arguments[2]}' Get Text jquery=div[id^='accordionItems']:visible .panel-item-collapse.in .item-info-wrapper .delivery .country
Run Keyword And Return If 'items[0].deliveryAddress.postalCode' == '${arguments[2]}' Get Text jquery=div[id^='accordionItems']:visible .panel-item-collapse.in .item-info-wrapper .delivery .postcode
Run Keyword And Return If 'items[0].deliveryAddress.region' == '${arguments[2]}' Get Text jquery=div[id^='accordionItems']:visible .panel-item-collapse.in .item-info-wrapper .delivery .region
Run Keyword And Return If 'items[0].deliveryAddress.locality' == '${arguments[2]}' Get Text jquery=div[id^='accordionItems']:visible .panel-item-collapse.in .item-info-wrapper .delivery .locality
Run Keyword And Return If 'items[0].deliveryAddress.streetAddress' == '${arguments[2]}' Get Text jquery=div[id^='accordionItems']:visible .panel-item-collapse.in .item-info-wrapper .delivery .street-address
Run Keyword And Return If 'items[0].deliveryLocation.latitude' == '${arguments[2]}' Get invisible text number by locator jquery=div[id^='accordionItems']:visible .panel-item-collapse.in .item-info-wrapper .delivery-latitude.hidden
Run Keyword And Return If 'items[0].deliveryLocation.longitude' == '${arguments[2]}' Get invisible text number by locator jquery=div[id^='accordionItems']:visible .panel-item-collapse.in .item-info-wrapper .delivery-longitude.hidden
${item1NeedToBeVisible}= Run Keyword And Return Status Should Start With ${arguments[2]} items[1]
Run Keyword If ${item1NeedToBeVisible} Execute JavaScript robottesthelpfunctions.showitembyindex(1);
Run Keyword If ${item1NeedToBeVisible} Sleep 2
Run Keyword And Return If 'items[1].description' == '${arguments[2]}' Get Text jquery=div[id^='accordionItems']:visible .panel-item-collapse.in .item-info-wrapper p.title .value
Run Keyword And Return If 'items[1].classification.scheme' == '${arguments[2]}' get_invisible_text jquery=div[id^='accordionItems']:visible .panel-item-collapse.in .item-info-wrapper .main-classification-scheme
Run Keyword And Return If 'items[1].classification.id' == '${arguments[2]}' get_invisible_text jquery=div[id^='accordionItems']:visible .panel-item-collapse.in .item-info-wrapper .main-classification-code
Run Keyword And Return If 'items[1].classification.description' == '${arguments[2]}' get_invisible_text jquery=div[id^='accordionItems']:visible .panel-item-collapse.in .item-info-wrapper .main-classification-description
Run Keyword And Return If 'items[1].quantity' == '${arguments[2]}' Get invisible text number by locator jquery=div[id^='accordionItems']:visible .panel-item-collapse.in .item-info-wrapper .quantity-source
Run Keyword And Return If 'items[1].unit.name' == '${arguments[2]}' get_invisible_text jquery=div[id^='accordionItems']:visible .panel-item-collapse.in .item-info-wrapper .unit-title-source
Run Keyword And Return If 'items[1].unit.code' == '${arguments[2]}' get_invisible_text jquery=div[id^='accordionItems']:visible .panel-item-collapse.in .item-info-wrapper .unit-code-source
Run Keyword And Return If 'items[1].deliveryDate.startDate' == '${arguments[2]}' get_invisible_text jquery=div[id^='accordionItems']:visible .panel-item-collapse.in .item-info-wrapper .delivery-start-date-source.hidden
Run Keyword And Return If 'items[1].deliveryDate.endDate' == '${arguments[2]}' get_invisible_text jquery=div[id^='accordionItems']:visible .panel-item-collapse.in .item-info-wrapper .delivery-end-date-source.hidden
Run Keyword And Return If 'items[1].deliveryAddress.countryName' == '${arguments[2]}' Get Text jquery=div[id^='accordionItems']:visible .panel-item-collapse.in .item-info-wrapper .delivery .country
Run Keyword And Return If 'items[1].deliveryAddress.postalCode' == '${arguments[2]}' Get Text jquery=div[id^='accordionItems']:visible .panel-item-collapse.in .item-info-wrapper .delivery .postcode
Run Keyword And Return If 'items[1].deliveryAddress.region' == '${arguments[2]}' Get Text jquery=div[id^='accordionItems']:visible .panel-item-collapse.in .item-info-wrapper .delivery .region
Run Keyword And Return If 'items[1].deliveryAddress.locality' == '${arguments[2]}' Get Text jquery=div[id^='accordionItems']:visible .panel-item-collapse.in .item-info-wrapper .delivery .locality
Run Keyword And Return If 'items[1].deliveryAddress.streetAddress' == '${arguments[2]}' Get Text jquery=div[id^='accordionItems']:visible .panel-item-collapse.in .item-info-wrapper .delivery .street-address
Run Keyword And Return If 'items[1].deliveryLocation.latitude' == '${arguments[2]}' Get invisible text number by locator jquery=div[id^='accordionItems']:visible .panel-item-collapse.in .item-info-wrapper .delivery-latitude.hidden
Run Keyword And Return If 'items[1].deliveryLocation.longitude' == '${arguments[2]}' Get invisible text number by locator jquery=div[id^='accordionItems']:visible .panel-item-collapse.in .item-info-wrapper .delivery-longitude.hidden
${item2NeedToBeVisible}= Run Keyword And Return Status Should Start With ${arguments[2]} items[2]
Run Keyword If ${item2NeedToBeVisible} Execute JavaScript robottesthelpfunctions.showitembyindex(2);
Run Keyword If ${item2NeedToBeVisible} Sleep 2
Run Keyword And Return If 'items[2].description' == '${arguments[2]}' Get Text jquery=div[id^='accordionItems']:visible .panel-item-collapse.in .item-info-wrapper p.title .value
### BOF - BelowFunders ###
${funderWrapper}= Set Variable \#funderorganizationinfo
Run Keyword And Return If '${arguments[2]}' == 'funders[0].name' get_invisible_text jquery=${funderWrapper} .name.hidden
Run Keyword And Return If '${arguments[2]}' == 'funders[0].address.countryName' get_invisible_text jquery=${funderWrapper} .country.hidden
Run Keyword And Return If '${arguments[2]}' == 'funders[0].address.locality' get_invisible_text jquery=${funderWrapper} .locality.hidden
Run Keyword And Return If '${arguments[2]}' == 'funders[0].address.postalCode' get_invisible_text jquery=${funderWrapper} .postalcode.hidden
Run Keyword And Return If '${arguments[2]}' == 'funders[0].address.region' get_invisible_text jquery=${funderWrapper} .region.hidden
Run Keyword And Return If '${arguments[2]}' == 'funders[0].address.streetAddress' get_invisible_text jquery=${funderWrapper} .street-address.hidden
Run Keyword And Return If '${arguments[2]}' == 'funders[0].contactPoint.url' Fail Контактні дані не відображаються
Run Keyword And Return If '${arguments[2]}' == 'funders[0].identifier.id' get_invisible_text jquery=${funderWrapper} .identifier-code.hidden
Run Keyword If '${arguments[2]}' == 'funders[0].identifier.legalName' JsSetScrollToElementBySelector ${funderWrapper}
Run Keyword And Return If '${arguments[2]}' == 'funders[0].identifier.legalName' get_text jquery=${funderWrapper} .legal-name .value
Run Keyword And Return If '${arguments[2]}' == 'funders[0].identifier.scheme' get_invisible_text jquery=${funderWrapper} .identifier-scheme.hidden
### EOF - BelowFunders ###
### BOF - OpenUaDefense ###
Run Keyword And Return If '${arguments[2]}' == 'enquiryPeriod.clarificationsUntil' get_invisible_text jquery=.enquiry-period-clarifications-until.hidden
### EOF - OpenUaDefense ###
### BOF - OpenEU ###
Run Keyword If '${arguments[2]}' == 'awards[1].complaintPeriod.endDate' JsOpenAwardByIndex 1
Run Keyword And Return If '${arguments[2]}' == 'awards[1].complaintPeriod.endDate' get_invisible_text jquery=.award-list-wrapper:first .panel-collapse.in .complaint-period-end-date.hidden
Run Keyword If '${arguments[2]}' == 'awards[2].complaintPeriod.endDate' JsOpenAwardByIndex 2
Run Keyword And Return If '${arguments[2]}' == 'awards[2].complaintPeriod.endDate' get_invisible_text jquery=.award-list-wrapper:first .panel-collapse.in .complaint-period-end-date.hidden
### EOF - OpenEU ###
### BOF - Esco ###
Run Keyword If '${arguments[2]}' == 'awards[4].complaintPeriod.endDate' JsOpenAwardByIndex 4
Run Keyword And Return If '${arguments[2]}' == 'awards[4].complaintPeriod.endDate' get_invisible_text jquery=.award-list-wrapper:first .panel-collapse.in .complaint-period-end-date.hidden
Run Keyword And Return If '${arguments[2]}' == 'minimalStepPercentage' get_invisible_text jquery=#tender-general-info .minimal-step-percentage-source.hidden
Run Keyword And Return If '${arguments[2]}' == 'yearlyPaymentsPercentageRange' get_invisible_text jquery=#tender-general-info .yearly-payments-percentage-range-source.hidden
Run Keyword And Return If '${arguments[2]}' == 'fundingKind' get_invisible_text jquery=#tender-general-info .funding-kind-source.hidden
### EOF - Esco ###
Fail Потрібна реалізація в "Отримати інформацію із тендера"
[return] playtender.tender.default
Отримати інформацію із лоту
[Arguments] ${username} @{arguments}
[Documentation]
... ${arguments[0]} == tender_uaid
... ${arguments[1]} == id
... ${arguments[2]} == fieldname
Switch browser ${username}
# Log To Console ''
# Log To Console Отримати інформацію із лоту
# Log To Console ${arguments[1]}
# Log To Console ${arguments[2]}
Collapse Lot ${arguments[1]}
Run Keyword And Return If 'title' == '${arguments[2]}' Отримати інформацію із лоту title ${arguments[1]}
Run Keyword And Return If 'value.amount' == '${arguments[2]}' Отримати інформацію із лоту value.amount ${arguments[1]}
Run Keyword And Return If 'minimalStep.amount' == '${arguments[2]}' Отримати інформацію із лоту minimalStep.amount ${arguments[1]}
Run Keyword And Return If 'description' == '${arguments[2]}' Отримати інформацію із лоту description ${arguments[1]}
Run Keyword And Return If 'value.currency' == '${arguments[2]}' Отримати інформацію із лоту value.currency ${arguments[1]}
Run Keyword And Return If 'value.valueAddedTaxIncluded' == '${arguments[2]}' Отримати інформацію із лоту value.valueAddedTaxIncluded ${arguments[1]}
Run Keyword And Return If 'minimalStep.currency' == '${arguments[2]}' Отримати інформацію із лоту minimalStep.currency ${arguments[1]}
Run Keyword And Return If 'minimalStep.valueAddedTaxIncluded' == '${arguments[2]}' Отримати інформацію із лоту minimalStep.valueAddedTaxIncluded ${arguments[1]}
Run Keyword And Return If 'auctionPeriod.startDate' == '${arguments[2]}' get_invisible_text jquery=#accordionLots .panel-collapse.in .lot-info-wrapper .auction-period-start-date.hidden
Run Keyword And Return If 'auctionPeriod.endDate' == '${arguments[2]}' get_invisible_text jquery=#accordionLots .panel-collapse.in .lot-info-wrapper .auction-period-end-date.hidden
Run Keyword And Return If 'minimalStepPercentage' == '${arguments[2]}' Get invisible text number by locator jquery=#accordionLots .panel-collapse.in .lot-info-wrapper .minimal-step-percentage-source.hidden
Run Keyword And Return If 'fundingKind' == '${arguments[2]}' get_invisible_text jquery=#accordionLots .lot-info-wrapper:first .funding-kind-source.hidden
Run Keyword And Return If 'yearlyPaymentsPercentageRange' == '${arguments[2]}' Get invisible text number by locator jquery=#accordionLots .lot-info-wrapper:first .yearly-payments-percentage-range-source.hidden
Collapse Lot ${arguments[1]}
[return] playtender.lot.default
Отримати інформацію із предмету
[Arguments] ${username} @{arguments}
[Documentation]
... ${arguments[0]} == tender_uaid
... ${arguments[1]} == id
... ${arguments[2]} == fieldname
Switch browser ${username}
# Log To Console ''
# Log To Console Отримати інформацію із предмету
# Log To Console ${arguments[1]}
# Log To Console ${arguments[2]}
# nego viewer
Run Keyword If '${MODE}' == 'negotiation' and 'description' == '${arguments[2]}' JsOpenItemByContainsText ${arguments[1]}
Run Keyword And Return If '${MODE}' == 'negotiation' and 'description' == '${arguments[2]}' Get text by locator jquery=.panel-lot-collapse.in .panel-item-collapse.in .item-info-wrapper p.title span.value
Run Keyword If '${MODE}' == 'negotiation' and 'classification.scheme' == '${arguments[2]}' JsOpenItemByContainsText ${arguments[1]}
Run Keyword And Return If '${MODE}' == 'negotiation' and 'classification.scheme' == '${arguments[2]}' Get invisible text by locator jquery=.panel-lot-collapse.in .panel-item-collapse.in .item-info-wrapper p.main-classification-scheme
Run Keyword If '${MODE}' == 'negotiation' and 'classification.id' == '${arguments[2]}' JsOpenItemByContainsText ${arguments[1]}
Run Keyword And Return If '${MODE}' == 'negotiation' and 'classification.id' == '${arguments[2]}' Get invisible text by locator jquery=.panel-lot-collapse.in .panel-item-collapse.in .item-info-wrapper p.main-classification-code
Run Keyword If '${MODE}' == 'negotiation' and 'classification.description' == '${arguments[2]}' JsOpenItemByContainsText ${arguments[1]}
Run Keyword And Return If '${MODE}' == 'negotiation' and 'classification.description' == '${arguments[2]}' Get invisible text by locator jquery=.panel-lot-collapse.in .panel-item-collapse.in .item-info-wrapper p.main-classification-description
Run Keyword If '${MODE}' == 'negotiation' and 'additionalClassifications[0].scheme' == '${arguments[2]}' JsOpenItemByContainsText ${arguments[1]}
Run Keyword And Return If '${MODE}' == 'negotiation' and 'additionalClassifications[0].scheme' == '${arguments[2]}' Get invisible text by locator jquery=.panel-lot-collapse.in .panel-item-collapse.in .item-info-wrapper p.additional-classification-scheme
Run Keyword If '${MODE}' == 'negotiation' and 'additionalClassifications[0].id' == '${arguments[2]}' JsOpenItemByContainsText ${arguments[1]}
Run Keyword And Return If '${MODE}' == 'negotiation' and 'additionalClassifications[0].id' == '${arguments[2]}' Get invisible text by locator jquery=.panel-lot-collapse.in .panel-item-collapse.in .item-info-wrapper p.additional-classification-code
Run Keyword If '${MODE}' == 'negotiation' and 'additionalClassifications[0].description' == '${arguments[2]}' JsOpenItemByContainsText ${arguments[1]}
Run Keyword And Return If '${MODE}' == 'negotiation' and 'additionalClassifications[0].description' == '${arguments[2]}' Get invisible text by locator jquery=.panel-lot-collapse.in .panel-item-collapse.in .item-info-wrapper p.additional-classification-description
Run Keyword If '${MODE}' == 'negotiation' and 'quantity' == '${arguments[2]}' JsOpenItemByContainsText ${arguments[1]}
Run Keyword And Return If '${MODE}' == 'negotiation' and 'quantity' == '${arguments[2]}' Get invisible text number by locator jquery=.panel-lot-collapse.in .panel-item-collapse.in .item-info-wrapper p.quantity-source
Run Keyword If '${MODE}' == 'negotiation' and 'unit.name' == '${arguments[2]}' JsOpenItemByContainsText ${arguments[1]}
Run Keyword And Return If '${MODE}' == 'negotiation' and 'unit.name' == '${arguments[2]}' Get invisible text by locator jquery=.panel-lot-collapse.in .panel-item-collapse.in .item-info-wrapper p.unit-title-source
Run Keyword If '${MODE}' == 'negotiation' and 'unit.code' == '${arguments[2]}' JsOpenItemByContainsText ${arguments[1]}
Run Keyword And Return If '${MODE}' == 'negotiation' and 'unit.code' == '${arguments[2]}' Get invisible text by locator jquery=.panel-lot-collapse.in .panel-item-collapse.in .item-info-wrapper p.unit-code-source
Run Keyword If '${MODE}' == 'negotiation' and 'deliveryDate.endDate' == '${arguments[2]}' JsOpenItemByContainsText ${arguments[1]}
Run Keyword And Return If '${MODE}' == 'negotiation' and 'deliveryDate.endDate' == '${arguments[2]}' Отримати інформацію із предмету deliveryDate.endDateEx
Run Keyword If '${MODE}' == 'negotiation' and 'deliveryAddress.countryName' == '${arguments[2]}' JsOpenItemByContainsText ${arguments[1]}
Run Keyword And Return If '${MODE}' == 'negotiation' and 'deliveryAddress.countryName' == '${arguments[2]}' Get invisible text by locator jquery=.panel-lot-collapse.in .panel-item-collapse.in .item-info-wrapper p.delivery-country
Run Keyword If '${MODE}' == 'negotiation' and 'deliveryAddress.postalCode' == '${arguments[2]}' JsOpenItemByContainsText ${arguments[1]}
Run Keyword And Return If '${MODE}' == 'negotiation' and 'deliveryAddress.postalCode' == '${arguments[2]}' Get invisible text by locator jquery=.panel-lot-collapse.in .panel-item-collapse.in .item-info-wrapper p.delivery-postalcode
Run Keyword If '${MODE}' == 'negotiation' and 'deliveryAddress.region' == '${arguments[2]}' JsOpenItemByContainsText ${arguments[1]}
Run Keyword And Return If '${MODE}' == 'negotiation' and 'deliveryAddress.region' == '${arguments[2]}' Get invisible text by locator jquery=.panel-lot-collapse.in .panel-item-collapse.in .item-info-wrapper p.delivery-region
Run Keyword If '${MODE}' == 'negotiation' and 'deliveryAddress.locality' == '${arguments[2]}' JsOpenItemByContainsText ${arguments[1]}
Run Keyword And Return If '${MODE}' == 'negotiation' and 'deliveryAddress.locality' == '${arguments[2]}' Get invisible text by locator jquery=.panel-lot-collapse.in .panel-item-collapse.in .item-info-wrapper p.delivery-locality
Run Keyword If '${MODE}' == 'negotiation' and 'deliveryAddress.streetAddress' == '${arguments[2]}' JsOpenItemByContainsText ${arguments[1]}
Run Keyword And Return If '${MODE}' == 'negotiation' and 'deliveryAddress.streetAddress' == '${arguments[2]}' Get invisible text by locator jquery=.panel-lot-collapse.in .panel-item-collapse.in .item-info-wrapper p.delivery-street-address
Run Keyword If '${MODE}' == 'negotiation' and 'deliveryLocation.latitude' == '${arguments[2]}' JsOpenItemByContainsText ${arguments[1]}
Run Keyword And Return If '${MODE}' == 'negotiation' and 'deliveryLocation.latitude' == '${arguments[2]}' Get invisible text number by locator jquery=.panel-lot-collapse.in .panel-item-collapse.in .item-info-wrapper p.delivery-latitude
Run Keyword If '${MODE}' == 'negotiation' and 'deliveryLocation.longitude' == '${arguments[2]}' JsOpenItemByContainsText ${arguments[1]}
Run Keyword And Return If '${MODE}' == 'negotiation' and 'deliveryLocation.longitude' == '${arguments[2]}' Get invisible text number by locator jquery=.panel-lot-collapse.in .panel-item-collapse.in .item-info-wrapper p.delivery-longitude
Run Keyword And Return If 'deliveryLocation.longitude' == '${arguments[2]}' Fail Не реалізований функціонал
Run Keyword And Return If 'deliveryLocation.latitude' == '${arguments[2]}' Fail Не реалізований функціонал
Collapse Single Lot
Collapse Product ${arguments[1]}
Run Keyword And Return If 'description' == '${arguments[2]}' Отримати інформацію із предмету description ${arguments[1]}
Run Keyword And Return If 'deliveryDate.startDate' == '${arguments[2]}' Отримати інформацію із предмету deliveryDate.startDate ${arguments[1]}
Run Keyword And Return If 'deliveryDate.endDate' == '${arguments[2]}' Отримати інформацію із предмету deliveryDate.endDate ${arguments[1]}
Run Keyword And Return If 'deliveryAddress.countryName' == '${arguments[2]}' Отримати інформацію із предмету deliveryAddress.countryName ${arguments[1]}
Run Keyword And Return If 'deliveryAddress.postalCode' == '${arguments[2]}' Отримати інформацію із предмету deliveryAddress.postalCode ${arguments[1]}
Run Keyword And Return If 'deliveryAddress.region' == '${arguments[2]}' Отримати інформацію із предмету deliveryAddress.region ${arguments[1]}
Run Keyword And Return If 'deliveryAddress.locality' == '${arguments[2]}' Отримати інформацію із предмету deliveryAddress.locality ${arguments[1]}
Run Keyword And Return If 'deliveryAddress.streetAddress' == '${arguments[2]}' Отримати інформацію із предмету deliveryAddress.streetAddress ${arguments[1]}
Run Keyword And Return If 'classification.scheme' == '${arguments[2]}' Отримати інформацію із предмету classification.scheme ${arguments[1]}
Run Keyword And Return If 'classification.id' == '${arguments[2]}' Отримати інформацію із предмету classification.id ${arguments[1]}
Run Keyword And Return If 'classification.description' == '${arguments[2]}' Отримати інформацію із предмету classification.description ${arguments[1]}
Run Keyword And Return If 'additionalClassifications[0].scheme' == '${arguments[2]}' Отримати інформацію із предмету additionalClassifications[0].scheme ${arguments[1]}
Run Keyword And Return If 'additionalClassifications[0].id' == '${arguments[2]}' Отримати інформацію із предмету additionalClassifications[0].id ${arguments[1]}
Run Keyword And Return If 'additionalClassifications[0].description' == '${arguments[2]}' Отримати інформацію із предмету additionalClassifications[0].description ${arguments[1]}
Run Keyword And Return If 'unit.name' == '${arguments[2]}' Отримати інформацію із предмету unit.name ${arguments[1]}
Run Keyword And Return If 'unit.code' == '${arguments[2]}' Отримати інформацію із предмету unit.code ${arguments[1]}
Run Keyword And Return If 'quantity' == '${arguments[2]}' Отримати інформацію із предмету quantity ${arguments[1]}
Collapse Product ${arguments[1]}
Collapse Single Lot
[return] playtender.product.default
Отримати інформацію із нецінового показника
[Arguments] ${username} @{arguments}
[Documentation]
... ${arguments[0]} == tender_uaid
... ${arguments[1]} == id
... ${arguments[2]} == fieldname
Switch browser ${username}
# Log To Console ''
# Log To Console Отримати інформацію із нецінового показника
# Log To Console ${arguments[1]}
# Log To Console ${arguments[2]}
Collapse Feature ${arguments[1]}
Run Keyword And Return If 'title' == '${arguments[2]}' Отримати інформацію із нецінового показника title ${arguments[1]}
Run Keyword And Return If 'description' == '${arguments[2]}' Отримати інформацію із нецінового показника description ${arguments[1]}
Run Keyword And Return If 'featureOf' == '${arguments[2]}' Отримати інформацію із нецінового показника featureOf ${arguments[1]}
Collapse Feature ${arguments[1]}
[return] playtender.feature.default
Отримати інформацію із документа
[Arguments] ${username} @{arguments}
[Documentation]
... ${arguments[0]} == tender_uaid
... ${arguments[1]} == id
... ${arguments[2]} == fieldname
Switch browser ${username}
# Log To Console ''
# Log To Console Отримати інформацію із документа
# Log To Console ${arguments[1]}
# Log To Console ${arguments[2]}
Collapse Document ${arguments[1]}
Run Keyword And Return If 'title' == '${arguments[2]}' Отримати інформацію із документа title ${arguments[1]}
Collapse Document ${arguments[1]}
[return] playtender.document.default
Отримати інформацію із запитання
[Arguments] ${username} ${tender_uaid} ${object_id} ${field_name}
Switch browser ${username}
# Log To Console ''
# Log To Console Отримати інформацію із запитання
# Log To Console ${object_id}
# Log To Console ${field_name}
Open Tender
Switch To Questions
Collapse Question ${object_id}
Run Keyword And Return If 'title' == '${field_name}' Отримати інформацію із запитання title ${object_id}
Run Keyword And Return If 'answer' == '${field_name}' Отримати інформацію із запитання answer ${object_id}
Run Keyword And Return If 'description' == '${field_name}' Отримати інформацію із запитання description ${object_id}
Collapse Question ${object_id}
[return] playtender.question.default
Отримати інформацію із скарги
[Arguments] ${username} ${tender_uaid} ${complaintID} ${field_name} ${award_index}
Switch browser ${username}
# Log To Console ''
# Log To Console Отримати інформацію із скарги
# Log To Console ${complaintID}
# Log To Console ${field_name}
# Log To Console ${award_index}
Open Tender
Switch To Complaints
Run Keyword If 'None' != '${complaintID}' Collapse Complaint ${complaintID}
Run Keyword If 'None' == '${complaintID}' Collapse Single Complaint
Run Keyword And Return If 'description' == '${field_name}' Отримати інформацію із скарги description ${complaintID}
Run Keyword And Return If 'complaintID' == '${field_name}' Отримати інформацію із скарги complaintID ${complaintID}
Run Keyword And Return If 'title' == '${field_name}' Отримати інформацію із скарги title ${complaintID}
Run Keyword And Return If 'status' == '${field_name}' Отримати інформацію із скарги status ${complaintID}
Run Keyword And Return If 'resolutionType' == '${field_name}' Отримати інформацію із скарги resolutionType ${complaintID}
Run Keyword And Return If 'resolution' == '${field_name}' Отримати інформацію із скарги resolution ${complaintID}
Run Keyword And Return If 'satisfied' == '${field_name}' Отримати інформацію із скарги satisfied ${complaintID}
Run Keyword And Return If 'relatedLot' == '${field_name}' Отримати інформацію із скарги relatedLot ${complaintID}
Run Keyword And Return If 'cancellationReason' == '${field_name}' Отримати інформацію із скарги cancellationReason ${complaintID}
Run Keyword If 'None' != '${complaintID}' Collapse Complaint ${complaintID}
Run Keyword If 'None' == '${complaintID}' Collapse Single Complaint
[return] playtender.complain.default
Отримати інформацію із документа до скарги
[Arguments] ${username} ${tender_uaid} ${complaintID} ${field_name} ${award_index}
Switch browser ${username}
# Log To Console ''
# Log To Console Отримати інформацію із документа до скарги
# Log To Console ${complaintID}
# Log To Console ${field_name}
# Log To Console ${award_index}
Open Tender
Switch To Complaints
Run Keyword If 'None' != '${complaintID}' Collapse Complaint ${complaintID}
Run Keyword If 'None' == '${complaintID}' Collapse Single Complaint
Run Keyword And Return If 'title' == '${award_index}' Отримати інформацію із документа до скарги title ${complaintID} ${field_name}
Run Keyword If 'None' != '${complaintID}' Collapse Complaint ${complaintID}
Run Keyword If 'None' == '${complaintID}' Collapse Single Complaint
[return] playtender.complain.document.default
Отримати документ
[Arguments] ${username} ${tender_uaid} ${doc_id}
Switch browser ${username}
Collapse Document ${doc_id}
${file_link}= Get Element Attribute xpath=//div[@id='documents']//div[contains(@data-title,'${doc_id}')]//p[@class='filename']//a[@target='_blank']@href
${file_name}= Convert To String test_file.txt
download_file ${file_link} ${file_name} ${OUTPUT_DIR}
Collapse Document ${doc_id}
[return] ${file_name}
Отримати документ до лоту
[Arguments] ${username} ${tender_uaid} ${lot_id} ${doc_id}
Switch browser ${username}
Collapse Lot ${lot_id}
Collapse Document2 ${lot_id} ${doc_id}
${file_link}= Get Element Attribute xpath=//div[@id='lots']//div[contains(@data-title,'${lot_id}')]//div[contains(@data-title,'${doc_id}')]//p[@class='filename']//a[@target='_blank']@href
${file_name}= Convert To String test_file_2.txt
download_file ${file_link} ${file_name} ${OUTPUT_DIR}
Collapse Document2 ${lot_id} ${doc_id}
Collapse Lot ${lot_id}
[return] ${file_name}
Отримати документ до скарги
[Arguments] ${username} ${tender_uaid} ${complaintID} ${doc_id}
Switch browser ${username}
# Log To Console ''
# Log To Console Отримати документ до скарги
# Log To Console ${complaintID}
# Log To Console ${doc_id}
Open Tender
Switch To Complaints
Run Keyword If 'None' != '${complaintID}' Collapse Complaint ${complaintID}
Run Keyword If 'None' == '${complaintID}' Collapse Single Complaint
${file_link}= Get Element Attribute xpath=//div[@id='tender-complaint-list']//div[@data-complaint-id='${complaintID}']//a[contains(text(),'${doc_id}')]@href
${file_name}= Convert To String test_file_3.txt
download_file ${file_link} ${file_name} ${OUTPUT_DIR}
Run Keyword If 'None' != '${complaintID}' Collapse Complaint ${complaintID}
Run Keyword If 'None' == '${complaintID}' Collapse Single Complaint
[return] ${file_name}
Отримати інформацію із пропозиції
[Arguments] ${username} ${tender_uaid} ${field}
Switch browser ${username}
# Log To Console ''
# Log To Console Отримати інформацію із пропозиції
# Log To Console ${field}
Open Tender
Collapse Single Proposal
Run Keyword And Return If 'lotValues[0].value.amount' == '${field}' Отримати інформацію із пропозиції lotValues[0].value.amount
Run Keyword And Return If 'status' == '${field}' Отримати інформацію із пропозиції status
Run Keyword And Return If 'value.amount' == '${field}' Отримати інформацію із пропозиції lotValues[0].value.amount
Collapse Single Proposal
[return] playtender.proposal.default
# --------------------------------------------------------- #
Collapse Lot
[Arguments] ${lot_id}
# Log To Console Collapse Lot ${lot_id}
Click Element xpath=//div[@id='lots']//span[contains(text(),'${lot_id}')]
Sleep 1
# Log To Console Collapse Lot ${lot_id}
Collapse Single Lot
# Log To Console Collapse Single Lot +
Click Element xpath=//div[@id='lots']//a[contains(@href,'#collapseLot')]
Sleep 1
# Log To Console Collapse Single Lot +
Collapse Product
[Arguments] ${product_id}
# Log To Console Collapse Product ${product_id}
Click Element xpath=//div[@id='lots']//a[contains(@href,'#collapseItem')]//span[contains(text(),'${product_id}')]
Sleep 1
# Log To Console Collapse Product ${product_id}
Collapse Feature
[Arguments] ${feature_id}
# Log To Console Collapse Feature ${feature_id}
Click Element xpath=//div[@id='features']//span[contains(text(),'${feature_id}')]
Sleep 1
# Log To Console Collapse Feature ${feature_id}
Collapse Document
[Arguments] ${document_id}
# Log To Console Collapse Document ${document_id}
Click Element xpath=//div[@id='documents']//span[contains(text(),'${document_id}')]
Sleep 1
# Log To Console Collapse Document ${document_id}
Collapse Document2
[Arguments] ${lot_id} ${document_id}
# Log To Console Collapse Document ${lot_id} ${document_id}
Click Element xpath=//div[@id='lots']//div[contains(@data-title,'${lot_id}')]//span[contains(text(),'${document_id}')]
Sleep 1
# Log To Console Collapse Document ${lot_id} ${document_id}
Collapse Question
[Arguments] ${question_id}
# Log To Console Collapse Question ${question_id}
execute javascript jQuery("#tender-question-list .panel-title .title:contains('${question_id}')").trigger('click');
#Click Element xpath=//div[@id='tender-question-list']//span[contains(text(),'${question_id}')]
#execute javascript robottesthelpfunctions.showquestionbykey('${question_id}');
Sleep 1
# Log To Console Collapse Question ${question_id}
Collapse Complaint
[Arguments] ${complaint_id}
# Log To Console Collapse Complaint ${complaint_id}
Click Element xpath=//div[@id='tender-complaint-list']//a[@data-complaint-id='${complaint_id}']
Sleep 1
# Log To Console Collapse Complaint ${complaint_id}
Collapse Single Complaint
# Log To Console Collapse Single Complaint +
Click Element xpath=//div[@id='tender-complaint-list']//a[contains(@href,'#collapseComplaint')]
Sleep 1
# Log To Console Collapse Single Complaint +
Collapse Single Proposal
# Log To Console Collapse Single Proposal +
Click Element xpath=//div[@id='myBid']//a[contains(@href,'#collapseMyBid')]
Sleep 1
# Log To Console Collapse Single Proposal +
JsOpenLotByContaintText
[arguments] ${text}
Execute JavaScript robottesthelpfunctions.showlotbytitle('${text}');
Sleep 1
JsSetScrollToElementBySelector \#lot .panel-lot-collapse.in
JsOpenItemByContainsText
[Arguments] ${text}
Execute JavaScript robottesthelpfunctions.showitembytext('${text}');
Sleep 3
Wait Until Page Contains Element jquery=.panel-lot-collapse.in .panel-item-collapse.in .item-info-wrapper 10
JsOpenItemByIndex
[Arguments] ${index}
JsOpenItemByContainsText ${USERS.users['${username}'].tender_data.data.items[${index}].description}
JsOpenDocumentByIndex
[Arguments] ${index}
Execute JavaScript robottesthelpfunctions.showdocumentbyindex(${index});
Sleep 3
Wait Until Page Contains Element jquery=#documents .panel-collapse.in .document-info-wrapper 10
JsOpenAwardByIndex
[Arguments] ${index}
Execute JavaScript robottesthelpfunctions.showawardbyindex(${index});
Sleep 3
Wait Until Page Contains Element jquery=.award-list-wrapper .panel-collapse.in .award-info-wrapper 10
JsOpenContractByIndex
[Arguments] ${index}
Execute JavaScript robottesthelpfunctions.showcontractbyindex(${index});
Sleep 3
Wait Until Page Contains Element jquery=#accordionContracts .panel-collapse.in .contract-info-wrapper 10
# --------------------------------------------------------- #
Get text by locator
[Arguments] ${locator}
${return_value}= get_text ${locator}
[return] ${return_value}
Get invisible text by locator
[Arguments] ${locator}
${return_value}= get_invisible_text ${locator}
[return] ${return_value}
Get text date by locator
[Arguments] ${locator}
${return_value}= get_text ${locator}
${return_value}= convert_date_for_compare_ex2 ${return_value}
[return] ${return_value}
Get invisible text number by locator
[Arguments] ${locator}
${return_value}= get_invisible_text ${locator}
${return_value}= Convert To Number ${return_value}
[return] ${return_value}
Get number from text by locator
[Arguments] ${locator}
${return_value}= get_text ${locator}
${return_value}= Convert To Number ${return_value}
[return] ${return_value}
Get invisible text boolean by locator
[Arguments] ${locator}
${return_value}= get_invisible_text ${locator}
${return_value}= Run Keyword If '1' == '${return_value}' Set Variable True
... ELSE Set Variable False
${return_value}= Convert To Boolean ${return_value}
[return] ${return_value}
Отримати інформацію із предмету description
[Arguments] ${product_id}
${return_value}= get_text xpath=//div[@id='lots']//a[contains(@href,'#collapseItem')]//span[contains(text(),'${product_id}')]
Collapse Product ${product_id}
Collapse Single Lot
[return] ${return_value}
Отримати інформацію із лоту title
[Arguments] ${lot_id}
${return_value}= get_text xpath=//div[@id='lots']//span[contains(text(),'${lot_id}')]
Collapse Lot ${lot_id}
[return] ${return_value}
Отримати інформацію із лоту value.amount
[Arguments] ${lot_id}
${return_value}= get_text xpath=//div[@id='lots']//div[contains(@data-title,'${lot_id}')]//p[@class='budget']//span[@class='value']
${return_value}= Evaluate ''.join('${return_value}'.split()[:-3])
${return_value}= Convert To Number ${return_value}
Collapse Lot ${lot_id}
[return] ${return_value}
Отримати інформацію із лоту minimalStep.amount
[Arguments] ${lot_id}
${return_value}= get_text xpath=//div[@id='lots']//div[contains(@data-title,'${lot_id}')]//p[@class='minimal-step']//span[@class='value']
${return_value}= Evaluate ''.join('${return_value}'.split()[:-3])
${return_value}= Convert To Number ${return_value}
Collapse Lot ${lot_id}
[return] ${return_value}
Отримати інформацію із нецінового показника title
[Arguments] ${feature_id}
${return_value}= get_text xpath=//div[@id='features']//span[contains(text(),'${feature_id}')]
Collapse Feature ${feature_id}
[return] ${return_value}
Отримати інформацію із предмету deliveryDate.startDate
[Arguments] ${product_id}
${return_value}= get_invisible_text //div[@id='lots']//div[contains(@id,'accordionItems')]//div[contains(@data-title,'${product_id}')]//p[@class='delivery-start-date hidden']
${return_value}= convert_date_for_compare_ex ${return_value}
Collapse Product ${product_id}
Collapse Single Lot
[return] ${return_value}
Отримати інформацію із предмету deliveryDate.endDate
[Arguments] ${product_id}
${return_value}= get_invisible_text //div[@id='lots']//div[contains(@id,'accordionItems')]//div[contains(@data-title,'${product_id}')]//p[@class='delivery-end-date hidden']
${return_value}= convert_date_for_compare_ex ${return_value}
Collapse Product ${product_id}
Collapse Single Lot
[return] ${return_value}
Отримати інформацію із предмету deliveryDate.endDateEx
${return_value}= Get invisible text by locator jquery=.panel-lot-collapse.in .panel-item-collapse.in .item-info-wrapper p.delivery-end-date
${return_value}= convert_date_for_compare_ex ${return_value}
[return] ${return_value}
Отримати інформацію із предмету deliveryAddress.countryName
[Arguments] ${product_id}
${return_value}= get_text //div[@id='lots']//div[contains(@id,'accordionItems')]//div[contains(@data-title,'${product_id}')]//p[@class='delivery']//span[@class='country']
Collapse Product ${product_id}
Collapse Single Lot
[return] ${return_value}
Отримати інформацію із предмету deliveryAddress.postalCode
[Arguments] ${product_id}
${return_value}= get_text //div[@id='lots']//div[contains(@id,'accordionItems')]//div[contains(@data-title,'${product_id}')]//p[@class='delivery']//span[@class='postcode']
Collapse Product ${product_id}
Collapse Single Lot
[return] ${return_value}
Отримати інформацію із предмету deliveryAddress.region
[Arguments] ${product_id}
${return_value}= get_text //div[@id='lots']//div[contains(@id,'accordionItems')]//div[contains(@data-title,'${product_id}')]//p[@class='delivery']//span[@class='region']
Collapse Product ${product_id}
Collapse Single Lot
[return] ${return_value}
Отримати інформацію із предмету deliveryAddress.locality
[Arguments] ${product_id}
${return_value}= get_text //div[@id='lots']//div[contains(@id,'accordionItems')]//div[contains(@data-title,'${product_id}')]//p[@class='delivery']//span[@class='locality']
Collapse Product ${product_id}
Collapse Single Lot
[return] ${return_value}
Отримати інформацію із предмету deliveryAddress.streetAddress
[Arguments] ${product_id}
${return_value}= get_text //div[@id='lots']//div[contains(@id,'accordionItems')]//div[contains(@data-title,'${product_id}')]//p[@class='delivery']//span[@class='street-address']
Collapse Product ${product_id}
Collapse Single Lot
[return] ${return_value}
Отримати інформацію із предмету classification.scheme
[Arguments] ${product_id}
${return_value}= get_invisible_text //div[@id='lots']//div[contains(@id,'accordionItems')]//div[contains(@data-title,'${product_id}')]//p[@class='main-classification-scheme hidden']
Collapse Product ${product_id}
Collapse Single Lot
[return] ${return_value}
Отримати інформацію із предмету classification.id
[Arguments] ${product_id}
${return_value}= get_text //div[@id='lots']//div[contains(@id,'accordionItems')]//div[contains(@data-title,'${product_id}')]//p[@class='classification'][1]//span[@class='value']
${return_value}= Split String ${return_value} max_split=1
Collapse Product ${product_id}
Collapse Single Lot
[return] ${return_value[0]}
Отримати інформацію із предмету classification.description
[Arguments] ${product_id}
${return_value}= get_text //div[@id='lots']//div[contains(@id,'accordionItems')]//div[contains(@data-title,'${product_id}')]//p[@class='classification'][1]//span[@class='value']
${return_value}= Split String ${return_value} max_split=1
Collapse Product ${product_id}
Collapse Single Lot
[return] ${return_value[1]}
Отримати інформацію із предмету additionalClassifications[0].scheme
[Arguments] ${product_id}
${return_value}= get_invisible_text //div[@id='lots']//div[contains(@id,'accordionItems')]//div[contains(@data-title,'${product_id}')]//p[@class='additional-classification-scheme hidden']
Collapse Product ${product_id}
Collapse Single Lot
[return] ${return_value}
Отримати інформацію із предмету additionalClassifications[0].id
[Arguments] ${product_id}
${return_value}= get_text //div[@id='lots']//div[contains(@id,'accordionItems')]//div[contains(@data-title,'${product_id}')]//p[@class='classification'][2]//span[@class='value']
${return_value}= Split String ${return_value} max_split=1
Collapse Product ${product_id}
Collapse Single Lot
[return] ${return_value[0]}
Отримати інформацію із предмету additionalClassifications[0].description
[Arguments] ${product_id}
${return_value}= get_text //div[@id='lots']//div[contains(@id,'accordionItems')]//div[contains(@data-title,'${product_id}')]//p[@class='classification'][2]//span[@class='value']
${return_value}= Split String ${return_value} max_split=1
Collapse Product ${product_id}
Collapse Single Lot
[return] ${return_value[1]}
Отримати інформацію із предмету unit.name
[Arguments] ${product_id}
${return_value}= get_text //div[@id='lots']//div[contains(@id,'accordionItems')]//div[contains(@data-title,'${product_id}')]//p[@class='quantity']//span[@class='value']
${return_value}= Split String ${return_value} max_split=1
Collapse Product ${product_id}
Collapse Single Lot
[return] ${return_value[1]}
Отримати інформацію із предмету unit.code
[Arguments] ${product_id}
${return_value}= get_invisible_text //div[@id='lots']//div[contains(@id,'accordionItems')]//div[contains(@data-title,'${product_id}')]//p[@class='unit-code-source hidden']
Collapse Product ${product_id}
Collapse Single Lot
[return] ${return_value}
Отримати інформацію із предмету quantity
[Arguments] ${product_id}
${return_value}= get_text //div[@id='lots']//div[contains(@id,'accordionItems')]//div[contains(@data-title,'${product_id}')]//p[@class='quantity']//span[@class='value']
${return_value}= Split String ${return_value} max_split=1
${return_value}= Convert To Number ${return_value[0]}
Collapse Product ${product_id}
Collapse Single Lot
[return] ${return_value}
Отримати інформацію із лоту description
[Arguments] ${lot_id}
JsOpenLotByContaintText ${lot_id}
${return_value}= get_text xpath=//div[@id='lots']//div[contains(@data-title,'${lot_id}')]//p[@class='description']
Collapse Lot ${lot_id}
[return] ${return_value}
Отримати інформацію із лоту value.currency
[Arguments] ${lot_id}
${summa}= get_text xpath=//div[@id='lots']//div[contains(@data-title,'${lot_id}')]//p[@class='budget']//span[@class='value']
Collapse Lot ${lot_id}
Run Keyword And Return If 'UAH' in '${summa}' Convert To String UAH
Run Keyword And Return If 'RUB' in '${summa}' Convert To String RUB
Run Keyword And Return If 'USD' in '${summa}' Convert To String USD
Run Keyword And Return If 'EUR' in '${summa}' Convert To String EUR
Run Keyword And Return If 'GBP' in '${summa}' Convert To String GBP
[return] ${EMPTY}
Отримати інформацію із лоту value.valueAddedTaxIncluded
[Arguments] ${lot_id}
${return_value}= get_text xpath=//div[@id='lots']//div[contains(@data-title,'${lot_id}')]//p[@class='budget']//span[@class='value']
${return_value}= Run Keyword If 'ПДВ' in '${return_value}' Set Variable True
... ELSE Set Variable False
${return_value}= Convert To Boolean ${return_value}
Collapse Lot ${lot_id}
[return] ${return_value}
Отримати інформацію із лоту minimalStep.currency
[Arguments] ${lot_id}
${summa}= get_text xpath=//div[@id='lots']//div[contains(@data-title,'${lot_id}')]//p[@class='minimal-step']//span[@class='value']
Collapse Lot ${lot_id}
Run Keyword And Return If 'UAH' in '${summa}' Convert To String UAH
Run Keyword And Return If 'RUB' in '${summa}' Convert To String RUB
Run Keyword And Return If 'USD' in '${summa}' Convert To String USD
Run Keyword And Return If 'EUR' in '${summa}' Convert To String EUR
Run Keyword And Return If 'GBP' in '${summa}' Convert To String GBP
[return] ${EMPTY}
Отримати інформацію із лоту minimalStep.valueAddedTaxIncluded
[Arguments] ${lot_id}
${return_value}= get_text xpath=//div[@id='lots']//div[contains(@data-title,'${lot_id}')]//p[@class='minimal-step']//span[@class='value']
${return_value}= Run Keyword If 'ПДВ' in '${return_value}' Set Variable True
... ELSE Set Variable False
${return_value}= Convert To Boolean ${return_value}
Collapse Lot ${lot_id}
[return] ${return_value}
Отримати інформацію із нецінового показника description
[Arguments] ${feature_id}
${return_value}= get_text xpath=//div[@id='features']//div[contains(@data-title,'${feature_id}')]//p[@class='description']
Collapse Feature ${feature_id}
[return] ${return_value}
Отримати інформацію із нецінового показника featureOf
[Arguments] ${feature_id}
${return_value}= get_text xpath=//div[@id='features']//div[contains(@data-title,'${feature_id}')]//p[@class='related-item']//span[@class='value']
Collapse Feature ${feature_id}
Run Keyword And Return If 'Лот' in '${return_value}' Convert To String lot
Run Keyword And Return If 'Учасник закупівлі' in '${return_value}' Convert To String tenderer
Run Keyword And Return If 'Товар/послуга' in '${return_value}' Convert To String item
[return] playtender.feature.default
Отримати інформацію із документа title
[Arguments] ${document_id}
${return_value}= get_text xpath=//div[@id='documents']//span[contains(text(),'${document_id}')]
Collapse Document ${document_id}
[return] ${return_value}
Отримати інформацію із запитання title
[Arguments] ${question_id}
${return_value}= get_text xpath=//div[@id='tender-question-list']//span[contains(text(),'${question_id}')]
Collapse Question ${question_id}
[return] ${return_value}
Отримати інформацію із запитання answer
[Arguments] ${question_id}
${return_value}= get_text xpath=//div[@id='tender-question-list']//div[contains(@data-title,'${question_id}')]//p[@class='answer']//span[@class='value']
Collapse Question ${question_id}
[return] ${return_value}
Отримати інформацію із запитання description
[Arguments] ${question_id}
${return_value}= get_text xpath=//div[@id='tender-question-list']//div[contains(@data-title,'${question_id}')]//p[@class='description']//span[@class='value']
Collapse Question ${question_id}
[return] ${return_value}
Switch To Complaints
Click Element xpath=//a[contains(@href, '/tender/complaints?id=')]
Wait Until Page Contains Вимоги/скарги 10
Отримати інформацію із скарги description
[Arguments] ${complaint_id}
Capture Page Screenshot
${return_value}= get_text xpath=//div[@id='tender-complaint-list']//div[@data-complaint-id='${complaint_id}']//p[@class='description']//span[@class='value']
Run Keyword If 'None' != '${complaint_id}' Collapse Complaint ${complaint_id}
Run Keyword If 'None' == '${complaint_id}' Collapse Single Complaint
[return] ${return_value}
Отримати інформацію із скарги complaintID
[Arguments] ${complaint_id}
Run Keyword If 'None' != '${complaint_id}' Collapse Complaint ${complaint_id}
Run Keyword If 'None' == '${complaint_id}' Collapse Single Complaint
[return] ${complaint_id}
Отримати інформацію із скарги title
[Arguments] ${complaint_id}
Capture Page Screenshot
${return_value}= get_text xpath=//div[@id='tender-complaint-list']//div[@data-complaint-id='${complaint_id}']//p[@class='title']//span[@class='value']
Run Keyword If 'None' != '${complaint_id}' Collapse Complaint ${complaint_id}
Run Keyword If 'None' == '${complaint_id}' Collapse Single Complaint
[return] ${return_value}
Отримати інформацію із скарги status
[Arguments] ${complaint_id}
${return_value}= get_invisible_text xpath=//div[@id='tender-complaint-list']//div[@data-complaint-id='${complaint_id}']//p[@class='status-source hidden']
Run Keyword If 'None' != '${complaint_id}' Collapse Complaint ${complaint_id}
Run Keyword If 'None' == '${complaint_id}' Collapse Single Complaint
[return] ${return_value}
Отримати інформацію із скарги resolutionType
[Arguments] ${complaint_id}
${return_value}= get_invisible_text xpath=//div[@id='tender-complaint-list']//div[@data-complaint-id='${complaint_id}']//p[@class='resolution-type-source hidden']
Run Keyword If 'None' != '${complaint_id}' Collapse Complaint ${complaint_id}
Run Keyword If 'None' == '${complaint_id}' Collapse Single Complaint
[return] ${return_value}
Отримати інформацію із скарги resolution
[Arguments] ${complaint_id}
Capture Page Screenshot
${return_value}= get_text xpath=//div[@id='tender-complaint-list']//div[@data-complaint-id='${complaint_id}']//p[@class='resolution']//span[@class='value']
Run Keyword If 'None' != '${complaint_id}' Collapse Complaint ${complaint_id}
Run Keyword If 'None' == '${complaint_id}' Collapse Single Complaint
[return] ${return_value}
Отримати інформацію із скарги satisfied
[Arguments] ${complaint_id}
${return_value}= get_invisible_text xpath=//div[@id='tender-complaint-list']//div[@data-complaint-id='${complaint_id}']//p[@class='satisfied-source hidden']
${return_value}= Run Keyword If '1' == '${return_value}' Set Variable True
... ELSE Set Variable False
${return_value}= Convert To Boolean ${return_value}
Run Keyword If 'None' != '${complaint_id}' Collapse Complaint ${complaint_id}
Run Keyword If 'None' == '${complaint_id}' Collapse Single Complaint
[return] ${return_value}
Отримати інформацію із документа до скарги title
[Arguments] ${complaint_id} ${document_id}
${return_value}= get_text xpath=//div[@id='tender-complaint-list']//div[@data-complaint-id='${complaint_id}']//a[contains(text(),'${document_id}')]
Run Keyword If 'None' != '${complaint_id}' Collapse Complaint ${complaint_id}
Run Keyword If 'None' == '${complaint_id}' Collapse Single Complaint
[return] ${return_value}
Отримати інформацію про qualificationPeriod.endDate
[return] playtender.test
Отримати інформацію із тендера tenderPeriod.startDate
${return_value}= get_text xpath=//p[contains(@class, 'tender-period')]//*[@class='value']//span[contains(@class, 'start-date')]
${return_value}= convert_date_for_compare_ex ${return_value}
[return] ${return_value}
Отримати інформацію із тендера tenderPeriod.endDate
${return_value}= get_text xpath=//p[contains(@class, 'tender-period')]//*[@class='value']//span[contains(@class, 'end-date')]
${return_value}= convert_date_for_compare_ex ${return_value}
[return] ${return_value}
Отримати інформацію із тендера procurementMethodType
${return_value}= get_invisible_text xpath=//*[contains(@class, 'hidden opprocurementmethodtype')]
[return] ${return_value}
Отримати інформацію із тендера value.amount
${return_value}= get_text xpath=//p[contains(@class, 'budget')]//*[@class='value']
${return_value}= Evaluate ''.join('${return_value}'.split()[:-3])
${return_value}= Convert To Number ${return_value}
[return] ${return_value}
Отримати інформацію із тендера status
Open Tender
${return_value}= get_invisible_text xpath=//*[contains(@class, 'hidden opstatus')]
[return] ${return_value}
Отримати інформацію із тендера enquiryPeriod.startDate
${return_value}= get_text xpath=//p[contains(@class, 'enquiry-period')]//*[@class='value']//span[contains(@class, 'start-date')]
${return_value}= convert_date_for_compare_ex ${return_value}
[return] ${return_value}
Отримати інформацію із тендера enquiryPeriod.endDate
${return_value}= get_text xpath=//p[contains(@class, 'enquiry-period')]//*[@class='value']//span[contains(@class, 'end-date')]
${return_value}= convert_date_for_compare_ex ${return_value}
[return] ${return_value}
Отримати інформацію із тендера complaintPeriod.startDate
${return_value}= get_text xpath=//p[contains(@class, 'complaint-period')]//*[@class='value']//span[contains(@class, 'start-date')]
${return_value}= convert_date_for_compare_ex ${return_value}
[return] ${return_value}
Отримати інформацію із тендера complaintPeriod.endDate
${return_value}= get_text xpath=//p[contains(@class, 'complaint-period')]//*[@class='value']//span[contains(@class, 'end-date')]
${return_value}= convert_date_for_compare_ex ${return_value}
[return] ${return_value}
Отримати інформацію із тендера title
${return_value}= get_text xpath=//div[contains(@class, 'content-part')]//h4[contains(@class, 'page-title')]
[return] ${return_value}
Отримати інформацію із тендера description
${return_value}= get_text xpath=//p[@class='description']
[return] ${return_value}
Отримати інформацію із тендера value.currency
${summa}= get_text xpath=//p[contains(@class, 'budget')]//*[@class='value']
Run Keyword And Return If 'UAH' in '${summa}' Convert To String UAH
Run Keyword And Return If 'RUB' in '${summa}' Convert To String RUB
Run Keyword And Return If 'USD' in '${summa}' Convert To String USD
Run Keyword And Return If 'EUR' in '${summa}' Convert To String EUR
Run Keyword And Return If 'GBP' in '${summa}' Convert To String GBP
[return] ${EMPTY}
Отримати інформацію із тендера value.valueAddedTaxIncluded
${return_value}= get_text xpath=//p[contains(@class, 'budget')]//*[@class='value']
${return_value}= Run Keyword If 'ПДВ' in '${return_value}' Set Variable True
... ELSE Set Variable False
${return_value}= Convert To Boolean ${return_value}
[return] ${return_value}
Отримати інформацію із тендера tenderID
${return_value}= Get invisible text by locator jquery=.aside-part .tenderuaid.hidden
[return] ${return_value}
Отримати інформацію із тендера stage2tenderID
${result}= Run Keyword And Return Status Page Should Contain Element jquery=.stage2-tender-id.hidden
Run Keyword If ${result} == False Sleep 125
Run Keyword If ${result} == False Reload Page
Run Keyword If ${result} == False Sleep 1
Capture Page Screenshot getStage2tenderid
${return_value}= Get invisible text by locator jquery=.stage2-tender-id.hidden
[return] ${return_value}
Отримати інформацію із тендера procuringEntity.name
${return_value}= get_text jquery=#procuringentityinfo .legal-name .value
[return] ${return_value}
Отримати інформацію із тендера minimalStep.amount
${nolot}= run keyword and return status page should contain element jquery=#tender-general-info .minimal-step-source.hidden
run keyword and return if ${nolot} get invisible text number by locator jquery=#tender-general-info .minimal-step-source.hidden
Collapse Single Lot
${return_value}= get_text xpath=//div[@id='lots']//p[@class='minimal-step']//span[@class='value']
${return_value}= Evaluate ''.join('${return_value}'.split()[:-3])
${return_value}= Convert To Number ${return_value}
Collapse Single Lot
[return] ${return_value}
Отримати інформацію із пропозиції lotValues[0].value.amount
${return_value}= get_text xpath=//div[@id='myBid']//div[contains(@id,'collapseMyBid')]//p[contains(@class, 'budget')]//*[@class='value']
${return_value}= Evaluate ''.join('${return_value}'.split()[:-3])
${return_value}= Convert To Number ${return_value}
Collapse Single Proposal
[return] ${return_value}
Отримати інформацію із пропозиції status
${return_value}= get_invisible_text xpath=//div[@id='myBid']//div[contains(@id,'collapseMyBid')]//p[contains(@class, 'status-source hidden')]
Collapse Single Proposal
[return] ${return_value}
Отримати інформацію із тендера qualifications[0].status
Click Element jquery=div#accordionQualifications > div.panel:eq(0):first a[data-toggle="collapse"]:first
${return_value}= get_invisible_text jquery=div#accordionQualifications > div.panel:eq(0):first p.status-source:first
Click Element jquery=div#accordionQualifications > div.panel:eq(0):first a[data-toggle="collapse"]:first
[return] ${return_value}
Отримати інформацію із тендера qualifications[1].status
Click Element jquery=div#accordionQualifications > div.panel:eq(1):first a[data-toggle="collapse"]:first
${return_value}= get_invisible_text jquery=div#accordionQualifications > div.panel:eq(1):first p.status-source:first
Click Element jquery=div#accordionQualifications > div.panel:eq(1):first a[data-toggle="collapse"]:first
[return] ${return_value}
Отримати інформацію із тендера qualificationPeriod.endDate
${return_value}= get_text xpath=//p[contains(@class, 'prequalification-period')]//*[@class='value']//span[contains(@class, 'end-date')]
${return_value}= convert_date_for_compare_ex ${return_value}
[return] ${return_value}
Отримати інформацію із тендера questions[0].title
[Arguments] ${username} ${tender_uaid}
${return_value}= playtender.Отримати інформацію із запитання ${username} ${tender_uaid} 0 title
Open Tender
[return] ${return_value}
Отримати інформацію із скарги cancellationReason
[Arguments] ${complaint_id}
${return_value}= get_text xpath=//div[@id='tender-complaint-list']//div[@data-complaint-id='${complaint_id}']//p[@class='cancellation-reason']//span[@class='value']
Run Keyword If 'None' != '${complaint_id}' Collapse Complaint ${complaint_id}
Run Keyword If 'None' == '${complaint_id}' Collapse Single Complaint
[return] ${return_value}
Отримати інформацію із скарги relatedLot
[Arguments] ${complaint_id}
${return_value}= get_invisible_text xpath=//div[@id='tender-complaint-list']//div[@data-complaint-id='${complaint_id}']//p[@class='related-item-source hidden']
Run Keyword If 'None' != '${complaint_id}' Collapse Complaint ${complaint_id}
Run Keyword If 'None' == '${complaint_id}' Collapse Single Complaint
[return] ${return_value}
### BOF - BELOW FUNDERS ###
Видалити донора
[Arguments] ${username} @{arguments}
${tenderid}= Set Variable ${arguments[0]}
TenderFormOpenByUAID ${tenderid}
Click Element id=tenderbelowthresholdform-is_donor
Save Tender
Додати донора
[Arguments] ${username} @{arguments}
${tenderid}= Set Variable ${arguments[0]}
${funder_data}= Set Variable ${arguments[1]}
TenderFormOpenByUAID ${tenderid}
Створити тендер Funder ${funder_data}
Save Tender
### EOF - BELOW FUNDERS ###
### BOF - PLANNING ###
Створити план
[Arguments] ${user} ${plan_data}
${plan_data}= procuring_entity_name ${plan_data}
${data}= Get From Dictionary ${plan_data} data
${data_keys}= Get Dictionary Keys ${data}
${start_date}= convert_isodate_to_site_date ${data.tender.tenderPeriod.startDate}
${budget_keys}= Get Dictionary Keys ${data.budget}
${classificationWrapper}= Set Variable \#collapseGeneral
${itemsWrapper}= Set Variable a[href='#collapseItems']
## preparing
# UserChangeOrgnizationInfo ${data.procuringEntity}
## load form page
Go To ${BROKERS['playtender'].basepage}/plan/create
Wait Until Page Contains Створення плану 10
Sleep 1
## filling form
Select From List By Value id=planform-procurement_method_type ${data.tender.procurementMethodType}
Run Keyword If 'period' in ${budget_keys} input datetime \#planform-period_start_date ${data.budget.period.startDate}
Run Keyword If 'period' in ${budget_keys} input datetime \#planform-period_end_date ${data.budget.period.endDate}
JsInputHiddenText \#planform-budget_id ${data.budget.id}
Input text id=planform-title ${data.budget.description}
Input Float \#planform-value_amount ${data.budget.amount}
Select From List By Value id=planform-value_currency ${data.budget.currency}
JsInputHiddenText \#planform-project_id ${data.budget.project.id}
JsInputHiddenText \#planform-project_name ${data.budget.project.name}
Input text id=planform-tender_start_date ${start_date}
InputClassificationByWrapper ${classificationWrapper} ${data.classification.id}
Run Keyword If 'additionalClassifications' in ${data_keys} InputAdditionalClassificationsByWrapper ${classificationWrapper} ${data.additionalClassifications}
Run Keyword If 'items' in ${data_keys} InputPlanItems ${data}
## submit form
Click Element xpath=//*[@id='submitBtn']
Sleep 1
Wait Until Page Contains План закупівлі створений, дочекайтесь опублікування на сайті уповноваженого органу. 10
Click Element xpath=//div[contains(@class, 'jconfirm-box')]//button[contains(@class, 'btn btn-default waves-effect waves-light btn-lg')]
Wait For Sync Tender 60
${plan_id} Get Text jquery=.content-part .plan-info-wrapper .plan-id .value
[Return] ${plan_id}
Пошук плану по ідентифікатору
[Arguments] ${username} ${tenderId}
Run Keyword If '${ROLE}' == 'viewer' Go To ${BROKERS['playtender'].basepage}/utils/plan-sync?planid=${tenderId}
Run Keyword If '${ROLE}' == 'viewer' Sleep 5
${planNotSynced}= Run Keyword And Return Status Page Should Contain fail
Run Keyword If '${ROLE}' == 'viewer' and ${planNotSynced} Go To ${BROKERS['playtender'].basepage}/utils/queue-plan-update
Run Keyword If '${ROLE}' == 'viewer' and ${planNotSynced} Sleep 30
Go To ${BROKERS['playtender'].basepage}/plans
Wait Until Page Contains Element id=plansearchform-query 10
#cat Input Text id=plansearchform-query ${tenderId}
#cat Click Element jquery=#plan-search-form .js-submit-btn
Input Text xpath=//input[@data-ds='query-input'] ${tenderId}
Click Element xpath=//button[@class='btn btn-default fa fa-search js-submit-btn']
#cat Press key xpath=//input[@data-ds='query-input'] \\13
Sleep 1
${passed}= Run Keyword And Return Status Wait Until Keyword Succeeds 360 s 0 s Шукати і знайти план
Run Keyword Unless ${passed} Fatal Error Тендер не знайдено за 360 секунд
Wait Until Page Does Not Contain Element jquery=#plan-list-pjax.loading-wrapper
Capture Page Screenshot
Click Element xpath=(//div[@id='plan-list-pjax'])//a[contains(@href, '/plan/')][1]
Sleep 5
Шукати і знайти план
Клацнути і дочекатися пошук xpath=//button[@class='btn btn-default fa fa-search js-submit-btn'] xpath=(//div[@id='plan-list-pjax'])//a[contains(@href, '/plan/')][1] 5
Оновити сторінку з планом
[Arguments] ${username} ${tenderId}
Reload Page
Sleep 2s
Внести зміни в план
[Arguments] @{ARGUMENTS}
[Documentation]
... ${ARGUMENTS[0]} = username
... ${ARGUMENTS[1]} = ${TENDER_UAID}
... ${ARGUMENTS[2]} = key
... ${ARGUMENTS[3]} = value
PlanFormOpenByUAID ${ARGUMENTS[1]}
Run Keyword If '${ARGUMENTS[2]}' == 'budget.amount' Input text id=planform-value_amount ${ARGUMENTS[3]}
Run Keyword If '${ARGUMENTS[2]}' == 'budget.description' Input text id=planform-title ${ARGUMENTS[3]}
Run Keyword If '${ARGUMENTS[2]}' == 'items[0].deliveryDate.endDateitem'
... PlanUpdateItemDeliveryEndDate \#collapseItems .tab-content .tab-pane:first ${ARGUMENTS[3]}
Run Keyword If '${ARGUMENTS[2]}' == 'items[0].quantity' JsTabShowAndScroll ul.form-nav-tabs a[data-toggle='tab'][href='#collapseItems']
Run Keyword If '${ARGUMENTS[2]}' == 'items[0].quantity' JsTabShowAndScroll \#collapseItems .nav li:first a
Run Keyword If '${ARGUMENTS[2]}' == 'items[0].quantity'
... PlanUpdateItemQuantity \#collapseItems .tab-content .tab-pane:first ${ARGUMENTS[3]}
PlanUpdateSave
Додати предмет закупівлі в план
[Arguments] ${username} ${uaid} ${item_data}
PlanFormOpenByUAID ${uaid}
InputPlanOneItem ${item_data}
PlanUpdateSave
Видалити предмет закупівлі плану
[Arguments] ${username} ${uaid} ${item_key}
PlanFormOpenByUAID ${uaid}
JsTabShowAndScroll ul.form-nav-tabs a[data-toggle='tab'][href='#collapseItems']
Click Element jquery=#collapseItems .nav li[data-title^='${item_key}']
Sleep 1
Click Element jquery=#collapseItems .nav li[data-title^='${item_key}'] .js-dynamic-form-remove
Wait Until Page Contains Ви впевнені що бажаєте видали обрану номенклатуру? 10
Click Element xpath=//div[contains(@class, 'jconfirm-box')]//button[contains(@class, 'btn btn-default waves-effect waves-light btn-lg')]
PlanUpdateSave
Отримати інформацію із плану
[Arguments] ${username} ${uaid} ${key}
${item0Wrapper}= Set Variable \#accordionItems .panel:nth(0) .panel-collapse:first
${item1Wrapper}= Set Variable \#accordionItems .panel:nth(1) .panel-collapse:first
${budget}= get_invisible_text jquery=#general-info .budget-amount
PlanOpenByUAID ${uaid}
JsSetScrollToElementBySelector \#general-info
Run Keyword And Return If '${key}' == 'tender.procurementMethodType' get_invisible_text jquery=#general-info .procurement-method-type
Run Keyword And Return If '${key}' == 'budget.amount' Convert To Number ${budget}
Run Keyword And Return If '${key}' == 'budget.description' get_text jquery=#general-info .budget-description .value
Run Keyword And Return If '${key}' == 'budget.currency' get_invisible_text jquery=#general-info .budget-currency
Run Keyword And Return If '${key}' == 'budget.id' get_text jquery=#general-info .budget-id .value
Run Keyword And Return If '${key}' == 'budget.project.id' get_invisible_text jquery=#general-info .budget-project-id
Run Keyword And Return If '${key}' == 'budget.project.name' get_invisible_text jquery=#general-info .budget-project-name
Run Keyword And Return If '${key}' == 'classification.description' get_invisible_text jquery=#general-info .main-classification-description
Run Keyword And Return If '${key}' == 'classification.scheme' get_invisible_text jquery=#general-info .main-classification-scheme
Run Keyword And Return If '${key}' == 'classification.id' get_invisible_text jquery=#general-info .main-classification-code
Run Keyword And Return If '${key}' == 'tender.tenderPeriod.startDate' get_invisible_text jquery=#general-info .tender-start-date-source
${procuringEntityNeedToBeVisible}= Run Keyword And Return Status Should Start With ${key} procuringEntity
Run Keyword If ${procuringEntityNeedToBeVisible} JsSetScrollToElementBySelector \#procuring-entity-info
Run Keyword And Return If '${key}' == 'procuringEntity.name' get_invisible_text jquery=#procuring-entity-info .name
Run Keyword And Return If '${key}' == 'procuringEntity.identifier.scheme' get_invisible_text jquery=#procuring-entity-info .identifier-scheme
Run Keyword And Return If '${key}' == 'procuringEntity.identifier.id' get_invisible_text jquery=#procuring-entity-info .identifier-code
Run Keyword And Return If '${key}' == 'procuringEntity.identifier.legalName' get_text jquery=#procuring-entity-info .legal-name .value
${item0NeedToBeVisible}= Run Keyword And Return Status Should Start With ${key} items[0]
Run Keyword If ${item0NeedToBeVisible} JsCollapseShowAndScroll ${item0Wrapper}
Run Keyword And Return If '${key}' == 'items[0].description' get_text jquery=div#accordionItems.panel-group div.panel.panel-default .panel-collapse.collapse.in div.panel-body div#w1.item-info-wrapper.info-wrapper p.title span.value
Run Keyword And Return If '${key}' == 'items[0].quantity' Get invisible text number by locator jquery=${item0Wrapper} .item-info-wrapper .quantity-source
Run Keyword And Return If '${key}' == 'items[0].deliveryDate.endDate' get_invisible_text jquery=${item0Wrapper} .item-info-wrapper .delivery-end-date-source
Run Keyword And Return If '${key}' == 'items[0].unit.code' get_invisible_text jquery=${item0Wrapper} .item-info-wrapper .unit-code-source
Run Keyword And Return If '${key}' == 'items[0].unit.name' get_invisible_text jquery=${item0Wrapper} .item-info-wrapper .unit-title-source
Run Keyword And Return If '${key}' == 'items[0].classification.description' get_invisible_text jquery=${item0Wrapper} .item-info-wrapper .main-classification-description
Run Keyword And Return If '${key}' == 'items[0].classification.scheme' get_invisible_text jquery=${item0Wrapper} .item-info-wrapper .main-classification-scheme
Run Keyword And Return If '${key}' == 'items[0].classification.id' get_invisible_text jquery=${item0Wrapper} .item-info-wrapper .main-classification-code
${item1NeedToBeVisible}= Run Keyword And Return Status Should Start With ${key} items[1]
Run Keyword If ${item1NeedToBeVisible} JsCollapseShowAndScroll ${item1Wrapper}
Run Keyword And Return If '${key}' == 'items[1].description' get_text jquery=${item1Wrapper} .item-info-wrapper .title .value
Run Keyword And Return If '${key}' == 'items[1].quantity' Get invisible text number by locator jquery=${item1Wrapper} .item-info-wrapper .quantity-source
Run Keyword And Return If '${key}' == 'items[1].deliveryDate.endDate' get_invisible_text jquery=${item1Wrapper} .item-info-wrapper .delivery-end-date-source
Run Keyword And Return If '${key}' == 'items[1].unit.code' get_invisible_text jquery=${item1Wrapper} .item-info-wrapper .unit-code-source
Run Keyword And Return If '${key}' == 'items[1].unit.name' get_invisible_text jquery=${item1Wrapper} .item-info-wrapper .unit-title-source
Run Keyword And Return If '${key}' == 'items[1].classification.description' get_invisible_text jquery=${item1Wrapper} .item-info-wrapper .main-classification-description
Run Keyword And Return If '${key}' == 'items[1].classification.scheme' get_invisible_text jquery=${item1Wrapper} .item-info-wrapper .main-classification-scheme
Run Keyword And Return If '${key}' == 'items[1].classification.id' get_invisible_text jquery=${item1Wrapper} .item-info-wrapper .main-classification-code
Fail NotImplemented
### EOF - PLANNING ###
### BOF - HELPERS ###
UserChangeOrgnizationInfo
[Arguments] ${data}
${keys}= Get Dictionary Keys ${data}
Go To ${BROKERS['playtender'].basepage}/user/profile
Wait Until Page Contains Інформація про компанію 10
Sleep 1
Run Keyword If 'name' in ${keys} Input text id=profileform-organization_name ${data.name}
Run Keyword If 'identifier' in ${keys} Input text id=profileform-organization_edrpou ${data.identifier.id}
Run Keyword If 'address' in ${keys} JsSetScrollToElementBySelector \#profileform-organization_region_id
Run Keyword If 'address' in ${keys} Select From List By Label jquery=#profileform-organization_region_id ${data.address.region}
Run Keyword If 'address' in ${keys} Input Text jquery=#profileform-organization_postal_code ${data.address.postalCode}
Run Keyword If 'address' in ${keys} Input Text jquery=#profileform-organization_locality ${data.address.locality}
Run Keyword If 'address' in ${keys} Input Text jquery=#profileform-organization_street_address ${data.address.streetAddress}
JsSetScrollToElementBySelector \#user-profile-form .js-submit-btn
Click Element jquery=\#user-profile-form .js-submit-btn
Sleep 1
Wait Until Page Contains Контактна інформація успішно оновлена 10
Click Element xpath=//div[contains(@class, 'jconfirm-box')]//button[contains(@class, 'btn btn-default waves-effect waves-light btn-lg')]
InputClassificationByWrapper
[Arguments] ${wrapper} ${classification_id}
Click Element jquery=${wrapper} a[href='#classification']
Wait Until Element Is Visible xpath=//div[contains(@id, 'classification-modal')]//h4[contains(@id, 'classificationModalLabel')]
Sleep 1
Input text xpath=//div[contains(@id, 'classification-modal')]//input[@class='form-control js-input'] ${classification_id}
Press key xpath=//div[contains(@id, 'classification-modal')]//input[@class='form-control js-input'] \\13
Sleep 1
Wait Until Page Contains Element xpath=//div[contains(@id, 'classification-modal')]//strong[contains(., '${classification_id}')] 20
Click Element xpath=//div[contains(@id, 'classification-modal')]//i[@class='jstree-icon jstree-checkbox']
Click Element xpath=//div[contains(@id, 'classification-modal')]//button[contains(@class, 'btn btn-default waves-effect waves-light js-submit')]
Sleep 1
InputAdditionalClassificationsByWrapper
[Arguments] ${wrapper} ${additionalClassifications}
Click Element jquery=${wrapper} a[href='#additionalclassification']
Wait Until Element Is Visible xpath=//div[contains(@id, 'additional-classification-modal')]//h4[contains(@id, 'additionalClassificationModalLabel')]
Sleep 1
${count}= Get Length ${additionalClassifications}
: FOR ${INDEX} IN RANGE 0 ${count}
\ Continue For Loop If '${additionalClassifications[${INDEX}].scheme}' == 'ДКПП'
\ Click Element jquery=#additional-classification-modal .nav a[data-toggle="tab"][data-scheme="${additionalClassifications[${INDEX}].scheme}"]
\ Wait Until Element Is Visible jquery=#additional-classification-modal .tab-pane.tree-wrapper.active input.js-input
\ Input text jquery=#additional-classification-modal .tab-pane.tree-wrapper.active input.js-input ${additionalClassifications[${INDEX}].id}
\ Press key jquery=#additional-classification-modal .tab-pane.tree-wrapper.active input.js-input \\13
\ Sleep 2
\ Wait Until Page Contains Element jquery=#additional-classification-modal .tab-pane.tree-wrapper.active .tree.js-search-tree strong:contains("${additionalClassifications[${INDEX}].id}") 20
\ Click Element jquery=#additional-classification-modal .tab-pane.tree-wrapper.active .tree.js-search-tree li:first i.jstree-checkbox
Click Element xpath=//div[contains(@id, 'additional-classification-modal')]//button[contains(@class, 'js-submit')]
Sleep 1
InputPlanItems
[Arguments] ${data}
${items}= Get From Dictionary ${data} items
${count}= Get Length ${items}
: FOR ${INDEX} IN RANGE 0 ${count}
\ InputPlanOneItem ${items[${INDEX}]}
InputPlanOneItem
[Arguments] ${data}
${wrapper}= Set Variable \#collapseItems .tab-content .tab-pane.active
${keys}= Get Dictionary Keys ${data}
JsTabShowAndScroll ul.form-nav-tabs a[data-toggle='tab'][href='#collapseItems']
Click Element jquery=#collapseItems a[href="#add-items"]
Sleep 2
Input text jquery=${wrapper} [id$='-description'] ${data.description}
PlanUpdateItemQuantity ${wrapper} ${data.quantity}
JsSetScrollToElementBySelector ${wrapper} [id$='-unit_id']
Select From List By Label jquery=${wrapper} [id$='-unit_id'] ${data.unit.name}
InputClassificationByWrapper ${wrapper} ${data.classification.id}
Run Keyword If 'additionalClassifications' in ${keys}
... InputAdditionalClassificationsByWrapper ${wrapper} ${data.additionalClassifications}
PlanUpdateItemDeliveryEndDate ${wrapper} ${data.deliveryDate.endDate}
TenderOpenByUAID
[Arguments] ${uaid}
Go To ${BROKERS['playtender'].basepage}/tender/${uaid}
Wait Until Page Contains Закупівля ${uaid} 10
TenderFormOpenByUAID
[Arguments] ${uaid}
TenderOpenByUAID ${uaid}
Click Element xpath=//a[contains(@href, '/tender/update')][1]
Sleep 1
Wait Until Page Contains Element id=tender-form 10
Sleep 1
PlanOpenByUAID
[Arguments] ${uaid}
Go To ${BROKERS['playtender'].basepage}/plan/${uaid}
Wait Until Page Contains План ${uaid} 10
PlanFormOpenByUAID
[Arguments] ${uaid}
PlanOpenByUAID ${uaid}
Click Element xpath=//a[contains(@href, '/plan/update')][1]
Wait Until Page Contains Редагування 10
Sleep 1
PlanUpdateItemQuantity
[Arguments] ${wrapper} ${quantity}
${quantity_srt}= Convert To String ${quantity}
JsSetScrollToElementBySelector ${wrapper} [id$='-quantity']
Input text jquery=${wrapper} [id$='-quantity'] ${quantity_srt}
PlanUpdateItemDeliveryEndDate
[Arguments] ${wrapper} ${delivery_end_date}
${date}= convert_isodate_to_site_datetime ${delivery_end_date}
JsInputHiddenText ${wrapper} [id$='-delivery_end_date'] ${date}
PlanUpdateSave
JsSetScrollToElementBySelector \#submitBtn
Click Element xpath=//*[@id='submitBtn']
Sleep 1
Wait Until Page Contains План оновлений, дочекайтесь опублікування на сайті уповноваженого органу. 10
Click Element xpath=//div[contains(@class, 'jconfirm-box')]//button[contains(@class, 'btn btn-default waves-effect waves-light btn-lg')]
Wait For Sync Tender 60
JsInputHiddenText
[Arguments] ${selector} ${text}
Execute JavaScript jQuery("${selector}").val("${text}");
JsSetScrollToElementBySelector
[Arguments] ${selector}
Execute JavaScript scrollToElement("${selector}", 0, 10);
Sleep 100ms
JsCollapseShowAndScroll
[Arguments] ${selector}
Execute JavaScript jQuery("${selector}").collapse("show");
Sleep 500ms
JsSetScrollToElementBySelector ${selector}
JsTabShowAndScroll
[Arguments] ${selector}
Execute JavaScript jQuery("${selector}").tab("show");
Sleep 300ms
JsSetScrollToElementBySelector ${selector}
GetDictionaryKeyExist [Arguments] ${Dictionary Name} ${Key}
Run Keyword And Return Status Dictionary Should Contain Key ${Dictionary Name} ${Key}
GetValueFromDictionaryByKey [Arguments] ${Dictionary Name} ${Key}
${KeyIsPresent}= Run Keyword And Return Status Dictionary Should Contain Key ${Dictionary Name} ${Key}
${Value}= Run Keyword If ${KeyIsPresent} Get From Dictionary ${Dictionary Name} ${Key}
Return From Keyword ${Value}
GenerateFakeDocument
${file_path} ${file_name} ${file_content}= op_robot_tests.tests_files.service_keywords.Create Fake Doc
[return] ${file_path}
GenerateFakeText
${text}= Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
[return] ${text}
WaitPageSyncing
[Arguments] ${timeout}
${passed}= Run Keyword And Return Status Wait Until Keyword Succeeds ${timeout} s 0 s GetPageSyncingStatus
Run Keyword Unless ${passed} Fatal Error Sync Finish not finish in ${timeout} sec
GetPageSyncingStatus
Sleep 2
Reload Page
Sleep 1
Page Should Not Contain Element jquery=.wrapper .card-box .fa.fa-refresh
WaitTenderAuctionEnd
[Arguments] ${timeout}
${passed}= Run Keyword And Return Status Wait Until Keyword Succeeds ${timeout} s 0 s GetTenderAuctionEndStatus
Run Keyword Unless ${passed} Fatal Error Tender not changed status from active.auction in ${timeout} sec
GetTenderAuctionEndStatus
Sleep 60
Reload Page
Sleep 5
${tenderStatus}= get_invisible_text xpath=//*[contains(@class, 'hidden opstatus')]
Should Not Be Equal As Strings ${tenderStatus} active.auction
Input Float
[Arguments] ${input_jquery_selector} ${value}
${value}= convert_float_to_string ${value}
Input Text jquery=${input_jquery_selector} ${value}
Input Float Multiply100
[Arguments] ${input_jquery_selector} ${value}
${value}= multiply_hundred ${value}
Input Float ${input_jquery_selector} ${value}
Input DateTime
[Arguments] ${input_jquery_selector} ${date}
${date}= convert_datetime_for_delivery ${date}
${date}= Convert Date ${date} %d.%m.%Y %H:%M
Input Text jquery=${input_jquery_selector} ${date}
Input DateTime XPath
[Arguments] ${input_selector} ${date}
${date}= convert_datetime_for_delivery ${date}
${date}= Convert Date ${date} %d.%m.%Y %H:%M
Input Text xpath=//${input_selector} ${date}
Input Converted DateTime
[Arguments] ${input_jquery_selector} ${date}
Input Text jquery=${input_jquery_selector} ${date}
sleep 1s
execute javascript $("${input_jquery_selector}").blur();
sleep 100ms
Input Text With Checking Input Isset
[Arguments] ${input_jquery_selector} ${text}
Log ${input_jquery_selector}
${input_isset}= Run Keyword And Return Status Page Should Contain Element jquery=${input_jquery_selector}
Run Keyword If ${input_isset} Input Text jquery=${input_jquery_selector} ${text}
Input Text With Checking Input Isset XPath
[Arguments] ${input_selector} ${text}
Log ${input_selector}
${input_isset}= Run Keyword And Return Status Page Should Contain Element xpath=//${input_selector}
Run Keyword If ${input_isset} Input Text xpath=//${input_selector} ${text}
Select From List By Label With Checking Input Isset XPath
[Arguments] ${input_selector} ${text}
Log ${input_selector}
${input_isset}= Run Keyword And Return Status Page Should Contain Element xpath=//${input_selector}
Run Keyword If ${input_isset} Select From List By Label xpath=//${input_selector} ${text}
GetInputProcTypeByProcurementMethodType
[Arguments] ${procurementMethodType}
${playtender_proc_type}= Convert_to_Lowercase ${procurementMethodType}
${playtender_proc_type}= Remove String ${playtender_proc_type} \.
${playtender_proc_type}= Set Variable If '${playtender_proc_type}' == 'belowthreshold' ${EMPTY} ${playtender_proc_type}
[return] ${playtender_proc_type}
### EOF - HELPERS ###