Relative Content

Tag Archive for javaselenium-webdriver

How do I scroll on a modal using selenium

I am trying to scroll down and click the ‘Purchase’ button on the following page once the place order button is clicked https://www.demoblaze.com/cart.html but I keep running into the following error:

Add request header before opening a webpage

There is request header (which works like VPN) I need to add before I open a webpage.
I’ve been trying different approaches like JS executor, Modheader, Proxy and nothing really helped. Only with JS executor I was able to add this request header but only after I’ve opened a webpage what is unacceptable.
Maybe some know some approaches that works as expected?