Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- List<string> listYears = new List<string>();
- listYears = (List<string>)window.ExecuteScript(@"$(document).ready(function(){
- var scr = document.createElement('script');
- scr.src = 'https://code.jquery.com/jquery-3.3.1.js';
- document.body.appendChild(scr);
- var years = []
- var thisYear = 0;
- $('time').each(function(){
- thisYear = parseInt($(this).attr('datetime').split('-')[0]);
- years.push(thisYear);
- });
- return years.toString();
- });");
- System.Diagnostics.Debug.WriteLine("*************************");
- System.Diagnostics.Debug.WriteLine("*************************");
- System.Diagnostics.Debug.WriteLine("*************************");
- System.Diagnostics.Debug.WriteLine("listYears: " + listYears[0]);
- System.Diagnostics.Debug.WriteLine("*************************");
- System.Diagnostics.Debug.WriteLine("*************************");
- System.Diagnostics.Debug.WriteLine("*************************");
- System.Diagnostics.Debug.WriteLine("*************************");
- System.Diagnostics.Debug.WriteLine("*************************");
- System.Diagnostics.Debug.WriteLine("*************************");
- System.Diagnostics.Debug.WriteLine("listYears: " + listYears);
- System.Diagnostics.Debug.WriteLine("*************************");
- System.Diagnostics.Debug.WriteLine("*************************");
- System.Diagnostics.Debug.WriteLine("*************************");
Add Comment
Please, Sign In to add comment