Selenium에서 페이지 순환하여 console.log 저장
개요
페이지 전체에서 https 대응하고 있는지, M70 대응(신뢰할 수 없게 되는 증명서를 사용하고 있는 페이지가 있는지)을 확인하고 싶고, Selenium에서 페이지를 순회하여 Chrome의 console.log를 자동으로 저장 하는 구조를 작성.
 환경
Chrome console.log를 저장하기위한 부팅 옵션 (mac)
open /Applications/Google\ Chrome.app --args --enable-logging --log-level=0
 Selenium WebDriver를 시작하는 방법 (node.js)
open /Applications/Google\ Chrome.app --args --enable-logging --log-level=0
const capabilities = webdriver.Capabilities.chrome()
const chromeOptions = {
    'args': ['enable-logging'],
}
capabilities.set('chromeOptions', chromeOptions)
let driver = await new webdriver.Builder()
.withCapabilities(config['capabilities'])
.build()
동작 이미지
 
 htps: //같다. 베/2RXbYS8아 KDw
 소스 코드 (github)
https://github.com/uebusin/save_chrome_log
                
                    
        
    
    
    
    
    
                
                
                
                
                    
                        
                            
                            
                            Reference
                            
                            이 문제에 관하여(Selenium에서 페이지 순환하여 console.log 저장), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
                                
                                https://qiita.com/uebusin/items/1b50287250cbb92045cb
                            
                            
                            
                                텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
                            
                            
                                
                                
                                 우수한 개발자 콘텐츠 발견에 전념
                                (Collection and Share based on the CC Protocol.)
                                
                                
                                우수한 개발자 콘텐츠 발견에 전념
                                (Collection and Share based on the CC Protocol.)
                            
                            
                        
                    
                
                
                
            
https://github.com/uebusin/save_chrome_log
Reference
이 문제에 관하여(Selenium에서 페이지 순환하여 console.log 저장), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/uebusin/items/1b50287250cbb92045cb텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
                                
                                
                                
                                
                                
                                우수한 개발자 콘텐츠 발견에 전념
                                (Collection and Share based on the CC Protocol.)