Skip to content

Instantly share code, notes, and snippets.

View framebassman's full-sized avatar

Dmitry Romashov framebassman

View GitHub Profile
ru.crystals.sco.visualization.main.MainForm
ru.crystals.pos.visualizationtouch.layout.PanelWithHeader
ru.crystals.sco.visualization.components.DualPanel$ImagePanel
ru.crystals.sco.visualization.components.SCOLabel
ru.crystals.pos.visualizationtouch.components.buttons.ButtonSimpleRed
ru.crystals.pos.visualizationtouch.components.statuspanel.StatusErrorPanel
ru.crystals.sco.visualization.SplashScreenForm
ru.crystals.pos.visualizationtouch.components.keyboard.KeyButton
ru.crystals.pos.visualizationtouch.components.keyboard.KeyButtonBackspace
ru.crystals.pos.visualizationtouch.layout.PanelWithHeader$1
// сначала document вызываем функцию evaluate чтобы она вернула нам все элементы нашего списка
var elements = document.evaluate("//li[@class='select2-results__option']", document, null, XPathResult.ANY_TYPE, null);
// потом объявляем текущий элемент из них, чтобы потом в цикле его обновлять
var current = elements.iterateNext();
// потом объявляем переменную, в которую будем добавлять текст из текущего элемента списка
var allText = "";
// а теперь создаем цикл в котором проходим до тех пор, пока current существует
while (current) {
// а в цикле берем текущий текст из елемента и приплюсовываем его к результату
allText += current.textContent + "\n";
declare default element namespace 'http://www.springframework.org/schema/beans';
for $x in doc('modules/techProcess/techProcess-system-config.xml')/beans/bean[@id='techProcess']
return (
if (exists($x/property[@name='bonusAsDiscountType']))
then replace value of node $x/property[@name='bonusAsDiscountType']/@value with ''
else (
insert node (
<property name="bonusAsDiscountType" value=""/>
) as last into $x
@distribution
Scenario: Saved distribution can be sent # distributions/AllKnownClients.feature:50
Given There is category with two clients with android and apple phones one by one # DistributionSteps.thereIsCategoryWithTwoClientsWithAndroidAndApplePhonesOneByOne()
When Merchant assigns "Бонусная" template to category # DistributionSteps.merchantAssignTemplateToCategory(String)
And Merchant creates distribution of category to all clients # DistributionSteps.merchantCreatesDistributionOfCategoryToAllClients()
And Merchant navigates to edit distribution # DistributionSteps.merchantNavigatesToEditDistribution()
org.openqa.selenium.TimeoutException: timeout
(Session info: chrome=64.0.3282.119)
(Driver info
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/ico" href="/favicon.ico">
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Roboto:400,500">
<link rel="stylesheet" href="//fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet" href="/css/index.css">
<title>SetWallet</title>
</head>
/**
* This is a template for an action rule. This rule defines a custom command
* and the changes that are applied by the command.
*
* For details, read the Quick Start Guide:
* https://www.jetbrains.com/help/youtrack/incloud/2017.2/Quick-Start-Guide-Workflows-JS.html
*/
var entities = require('v1/entities');
using System;
using System.Collections.Generic;
namespace Awesome
{
public class BaseClass
{
private List<string> items;
public BaseClass()