File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed 
Infrastructure/BotSharp.Abstraction/Browsing 
Plugins/BotSharp.Plugin.WebDriver/Drivers/PlaywrightDriver Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -30,4 +30,5 @@ public interface IWebBrowser
3030    Task < BrowserActionResult >  SendHttpRequest ( MessageInfo  message ,  HttpRequestParams  actionParams ) ; 
3131    Task < BrowserActionResult >  GetAttributeValue ( MessageInfo  message ,  ElementLocatingArgs  location ) ; 
3232    Task < BrowserActionResult >  SetAttributeValue ( MessageInfo  message ,  ElementLocatingArgs  location ) ; 
33+     string  GetCurrentUrl ( MessageInfo  message ) ; 
3334} 
Original file line number Diff line number Diff line change @@ -17,4 +17,11 @@ public async Task<string> ExtractData(BrowserActionParams actionParams)
1717
1818        return  answer ; 
1919    } 
20+     public  string  GetCurrentUrl ( MessageInfo  message ) 
21+     { 
22+         var  page  =  _instance . GetPage ( message . ContextId ) ; 
23+         if  ( page  ==  null ) 
24+             return  string . Empty ; 
25+         return  page . Url ; 
26+     } 
2027} 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments