Exemplo n.º 1
0
        internal async Task <IElementHandle> AddStyleTagAsync(bool isPageCall, string url, string path, string content)
        {
            if (!string.IsNullOrEmpty(path))
            {
                content  = File.ReadAllText(path);
                content += "//# sourceURL=" + path.Replace("\n", string.Empty);
            }

            return((await _channel.AddStyleTagAsync(url, path, content, isPageCall).ConfigureAwait(false)).Object);
        }