File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed 
test/selenium/webdriver/common Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -97,6 +97,7 @@ TEST_DEPS = [
9797    requirement ("sortedcontainers" ),
9898    requirement ("sniffio" ),
9999    requirement ("zipp" ),
100+     "@rules_python//python/runfiles" ,
100101]
101102
102103copy_file (
Original file line number Diff line number Diff line change 1919import  os 
2020import  pytest 
2121
22+ from  python .runfiles  import  Runfiles 
2223from  selenium .webdriver .common .by  import  By 
2324from  selenium .webdriver .support .wait  import  WebDriverWait 
2425
2728EXTENSION_PATH  =  "webextensions-selenium-example-signed" 
2829EXTENSION_ARCHIVE_PATH  =  "webextensions-selenium-example.xpi" 
2930
30- extensions  =  os .path .abspath ("../../../../../../test/extensions/" )
31+ # Use bazel Runfiles to locate the test extension directory 
32+ r  =  Runfiles .Create ()
33+ extensions  =  r .Rlocation ("selenium/py/test/extensions" )
3134
3235
3336def  install_extension (driver , ** kwargs ):
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments