// Copyright © 2022 The CefSharp Authors. All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. namespace CefSharp { /// /// WaitForSelectorAsyncResponse /// public class WaitForSelectorAsyncResponse { /// /// Element Id /// public string ElementId { get; private set; } /// /// Tag Name /// public string TagName { get; private set; } /// /// True if the javascript was executed successfully /// public bool Success { get; private set; } /// /// Error Message /// public string ErrorMessage { get; private set; } /// /// True if the element was added to the DOM otherwise false if it was removed /// public bool ElementAdded { get; private set; } public WaitForSelectorAsyncResponse(bool success, string errorMessage) { Success = success; ErrorMessage = errorMessage; } public WaitForSelectorAsyncResponse(string elementId, string tagName, bool elementAdded) { Success = true; ErrorMessage = string.Empty; ElementId = elementId; TagName = tagName; ElementAdded = elementAdded; } } }