Thanks a lot Naveen for explaining a useful technique of headless browser using chrome and most important and unique thing is your style of explaining each topic. It is extremely useful for those who are beginners in automation. Thank you very much Naveen.😊
Hi Naveen!! First of all kudos for making such explanatory videos. I have become so addicted to your mode of teaching that for any solution, I search in your videos. I have a question regarding headless execution. How can I write a code to execute headless test cases when running in Jenkins and headed execution when running on local machine?
Thanks for the helpful video. im trying to automate my office's web and since it still not mobile website. it always fail to locate the element. do you know to tackle that issue. Thanks
how to use headless browser with cucumber selenium where i need to use the same step continously..I need to have the all the browser instances open until all my steps get complete
Hi Naveen, thanks for the video and i follow the video and implement it windows it is working fine but when i run this in linux it throws expectations saying that binary is missing. Can you please let me know how to fix this?
Hi Naveen,This Syntax is not working in my Laptop.Can you help me on this. I am getting error like "Unable to locate element" But when I will run the same script without using "Chromeoptions" then the script is working fine. Can you help me on this?
Well explained, you forced me to subscribe channel, Having doubt , ....., Yes, when I am running my script with headless browser, maven project with testNG framework , got failure with element not found error, but when use window size argument then it works fine. My Question is, will script run on Linux successfully if do not use this window size option? SXE team told Linux do not support this window argument so write without it, but without it, getting error message. What should I reply them ?
Hi @Naveen, I am not able to open PDF URLs in chromeHeadless Mode. Do you have any workaround on this, how can we achieve it. It works well in chrome Browser & in firefox Headless Mode too but not with chromeHeadless Mode. Take www.sbimf.com/en-us/pdf/sbi%20multi%20-%20application%20form.pdf this URL for eg.
First of all many thanks for making such a wonderful video on this topic. Problem : I am trying to access a password protected url which loads pdf. This works absolutely fine in normal chrome browser, however, in Chrome headless mode because of some reason the PDF never gets loaded. Need your help to approach this problem. It would really be a BIG help if you can help me in anyways… Many thanks to you in advance.
Forget about Password protected PDF URL, even normal PDF URL doesnt open in chromeHeadless. It opens well in firefoxHeadles mode. Have you found any workaround yet on opening PDF files in chromeHeadless?
Hey sir, Thanks for this video! after add same code, i am still able to see all response in the chrome browser. according to your instructions, my chrome version is greater than 60 for window but i did not able to resolve this problem. here is my code: public class Brandjobs_project { public static void main(String[] args) throws InterruptedException { System.setProperty("webDriver.chrome.driver","C:\\\\\\\\Users\\\\\\\\lz-pc-30\\\\\\\\Downloads\\\\\\\\chromedriver_win32\\\\\\\\chromedriver.exe");
ChromeOptions options = new ChromeOptions(); options.addArguments("window-size=1400, 800"); options.addArguments("headless");
Hi Naveen,This Syntax is not working in my Laptop.Can you help me on this. I am getting error like "Unable to locate element" But when I will run the same script without using "Chromeoptions" then the script is working fine. Can you help me on this?
Thanks a lot Naveen for explaining a useful technique of headless browser using chrome and most important and unique thing is your style of explaining each topic. It is extremely useful for those who are beginners in automation. Thank you very much Naveen.😊
Thank you Naveen. So glad that you posted this video. I could resolve my issue after adding window-size arguments to Options.
10:54 You have not added options parameter to ChromeDriver still how headless driver works?
Hi Naveen!! First of all kudos for making such explanatory videos. I have become so addicted to your mode of teaching that for any solution, I search in your videos. I have a question regarding headless execution. How can I write a code to execute headless test cases when running in Jenkins and headed execution when running on local machine?
Amazing concept 👌👌
I am getting this error while performing htmlunitdriver
org.openqa.selenium.NoSuchElementException: Returned node was not a DOM element
Thanks for this helpful video.
I am facing an issue, everything is working fine but I don't see browser icon in the task bar.
Thanks for the helpful video. im trying to automate my office's web and since it still not mobile website. it always fail to locate the element. do you know to tackle that issue.
Thanks
how to use headless browser with cucumber selenium where i need to use the same step continously..I need to have the all the browser instances open until all my steps get complete
how can we perform headless whilst using ThreadLocal?
Hi Naveen, How is it different than PhantomJS then? Can PhantomJS be replaced by ChromOption in headless testing ?
Is it possible from headless mode switch to the GUI mode WITHOUT CLOSING the browser?
after configure headless browser, if url contains port no e.g. test.test.com:9071, it is not open in the headless mode
Hi Naveen, thanks for the video and i follow the video and implement it windows it is working fine but when i run this in linux it throws expectations saying that binary is missing. Can you please let me know how to fix this?
Hi Naveen,This Syntax is not working in my Laptop.Can you help me on this.
I am getting error like "Unable to locate element"
But when I will run the same script without using "Chromeoptions" then the script is working fine.
Can you help me on this?
Do u got any solution for this issue. I getting this issue in my script
Hi Naveen, i tried this using bonigracia api but it is not working, it is opening chrome browser and displayed also.......can u help me?
Thanks
Hello Naveen,I tried this on vsts hosted agent.but in hosted agent it doesn't chrome browser whether I can execute script
Hi how to run it in terminal can u tell the commad?
Well explained, you forced me to subscribe channel, Having doubt , ....., Yes, when I am running my script with headless browser, maven project with testNG framework , got failure with element not found error, but when use window size argument then it works fine. My Question is, will script run on Linux successfully if do not use this window size option? SXE team told Linux do not support this window argument so write without it, but without it, getting error message. What should I reply them ?
I ran with headless browsers but it is opening gui so can you pls tell how you achieved for this
Hi @Naveen, I am not able to open PDF URLs in chromeHeadless Mode. Do you have any workaround on this, how can we achieve it. It works well in chrome Browser & in firefox Headless Mode too but not with chromeHeadless Mode. Take www.sbimf.com/en-us/pdf/sbi%20multi%20-%20application%20form.pdf this URL for eg.
Naven Any Videos On Puppeteer,Nodejs, Javascript ChromeDevTools
Seems strange, but this is opening a browser in my PC. However Firefox is working fine with the same code
is it take screen shots
Yes,I tried it's working fine.
This syntax not working in my laptop....
headless is way slower than normal execution on my machine
First of all many thanks for making such a wonderful video on this topic.
Problem :
I am trying to access a password protected url which loads pdf. This works absolutely fine in normal chrome browser, however, in Chrome headless mode because of some reason the PDF never gets loaded.
Need your help to approach this problem.
It would really be a BIG help if you can help me in anyways…
Many thanks to you in advance.
Forget about Password protected PDF URL, even normal PDF URL doesnt open in chromeHeadless. It opens well in firefoxHeadles mode. Have you found any workaround yet on opening PDF files in chromeHeadless?
Hey sir, Thanks for this video! after add same code, i am still able to see all response in the chrome browser. according to your instructions, my chrome version is greater than 60 for window but i did not able to resolve this problem. here is my code:
public class Brandjobs_project {
public static void main(String[] args) throws InterruptedException {
System.setProperty("webDriver.chrome.driver","C:\\\\\\\\Users\\\\\\\\lz-pc-30\\\\\\\\Downloads\\\\\\\\chromedriver_win32\\\\\\\\chromedriver.exe");
ChromeOptions options = new ChromeOptions();
options.addArguments("window-size=1400, 800");
options.addArguments("headless");
WebDriver driver= new ChromeDriver(options);
Hi Naveen,This Syntax is not working in my Laptop.Can you help me on this.
I am getting error like "Unable to locate element"
But when I will run the same script without using "Chromeoptions" then the script is working fine.
Can you help me on this?
I am facing same issue.. Did you figure it out??