mirror of
				https://github.com/teamcapybara/capybara.git
				synced 2022-11-09 12:08:07 -05:00 
			
		
		
		
	Fix raising of error for trying to use shadow_root on old Selenium
This commit is contained in:
		
							parent
							
								
									51d6982705
								
							
						
					
					
						commit
						0a1fccbff0
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -221,7 +221,7 @@ class Capybara::Selenium::Node < Capybara::Driver::Node
 | 
			
		|||
  end
 | 
			
		||||
 | 
			
		||||
  def shadow_root
 | 
			
		||||
    raise_error 'You must be using Selenium 4.1+ for shadow_root support' unless native.respond_to? :shadow_root
 | 
			
		||||
    raise 'You must be using Selenium 4.1+ for shadow_root support' unless native.respond_to? :shadow_root
 | 
			
		||||
 | 
			
		||||
    root = native.shadow_root
 | 
			
		||||
    root && build_node(native.shadow_root)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue