Итак, я хочу иметь фильтр для промежутков с определенным текстом. jquery работает в консоли на chrome, но почему, когда я использую excuteScript, он выдает System.FormatException: входная строка была в неправильном формате ?
JsExecutor.ExecuteScript(string.Format("$(\"h3:contains('{0}')\").closest(\"div.form-group-container\").find(\"span:contains('{1}')\")" +
".filter(function(){return $(this).text().toLowerCase()===\"{1}\";})" +
".closest(\"tr\").find(\"input\").click()", loonelementenType, excludedLoonelementen));
При отладке я замечаю, что .filter(function(){return $(this).text().toLowerCase()===\"{1}\";})
- это тот, который вызвал System.FormatException