how do i suppress message of website in selenium



  • I am using selenium with python with the --headless parameter so the bot doesnt take up too much memory, I want to log the current task of the bot in the console however some websites send some text to the console, e.g reddit "using reddit for work ? work for reddit!" and then a huge pixelart of the reddit mascot. this makes the current action performed Xpath of selenium by the bot hardly readable, is there any way to suppress such messages ?