Rasukarusan / shellnium

:dizzy: Selenium Webdriver for Bash (or Zsh).
https://shellnium-site.vercel.app
MIT License
173 stars 21 forks source link

Screenshot function thorws warning/error text on terminal #20

Open jakre1234 opened 1 year ago

jakre1234 commented 1 year ago

Hello Devs, I have been playing with this awesome selenium wrapper but when I try to take screenshots of current page, then it gives a warning/error text on terminal stating

missing command parameters

Tried redirecting the output to 2>/dev/null but no success

jakre1234 commented 1 year ago

Also unable to manipulate dom elements with exec_script command, I am trying to run the script

var l = document.getElementsByClassName("topbar-signed-out__wrapper")[0];l.parentNode.removeChild(l);var k = document.getElementsByClassName("topbar-signed-out__spacer")[0];k.remove();

but it doesn't work :(