selenium-rs icon indicating copy to clipboard operation
selenium-rs copied to clipboard

Headless Chrome

Open tiberiusferreira opened this issue 6 years ago • 3 comments

Hello, I've been using this crate for a while now. It is really great, thank you.

However, I've reached a point where I need to run the browser headless. Chrome has the --headless flag, but apparently we need to pass it to selenium too: https://blog.miguelgrinberg.com/post/using-headless-chrome-with-selenium

Is there anyway to do this?

tiberiusferreira avatar Apr 05 '19 20:04 tiberiusferreira

@tiberiusferreira Hi, can you open the browser and start typing,selecting,checking,choosing as you do with other binding?

Rajagopalan-M avatar Apr 21 '19 10:04 Rajagopalan-M

Hello, sorry for the delay. I actually got it to work by doing some ugly patching for my use case here: https://github.com/tiberiusferreira/selenium-rs/commit/751285834f2d2534c9e1a709caee2fb04b2de477

I also added the ability to take screenshots: https://github.com/tiberiusferreira/selenium-rs/commit/03552a6b2bebe6c92d007ea925a2fd5f26004c76

Unfortunately I did not have time yet to make it properly and open a PR here.

tiberiusferreira avatar Apr 27 '19 23:04 tiberiusferreira

@tiberiusferreira Could you please PR this?

HPaulson avatar Mar 31 '21 06:03 HPaulson