Hello,
I try to access the instance property from a thread in C# but it doesn't seem to work.
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
This will only print "yo" to the console but not change the html element.
If I run the code without the Task, it works.
How can I access the instance element inside a Thread?
								I try to access the instance property from a thread in C# but it doesn't seem to work.
			
				C#:
			
		
		
		Task.Run(() =>
              {
              
                 project.SendInfoToLog("yo");
                
                // Action designer, type Set
                HtmlElement he = instance.ActiveTab.GetDocumentByAddress("0").FindElementByAttribute("body", "innertext", "body", "regexp", 0);
                // Set to attribute "innertext" value "closing tab"
                he.SetAttribute("innertext", "hello");
              });If I run the code without the Task, it works.
How can I access the instance element inside a Thread?

