Mar-25-2020, 12:19 PM
Back to my project this morning and my goal was to hide or auto close the window that Chromedriver pops up and doesn't bother to close. I had formatted my image so it had a border around it to allow me the ability to measure the size of the output. Since I was past that part I turned off the boarder and ran my code which has not changed since yesterday when it worked just fine.
The only thing different in this process was that I change change the html in my label-formatter from
to...
when I ran my code that calls the Chromedriver, instead of seeing the annoying popup window that tells me that Chomedriver has been called, I get this!
So I changed my html page back to border="1" and got the very same result.
I have no idea what has changed from yesterday when this code worked perfectly (except for the annoying popup window) but something is causing my code to fail now that was working. Here is the code that calls Chromedriver.
The only thing different in this process was that I change change the html in my label-formatter from
Quote:<table height="240" Width="390" border="1">
to...
Quote:<table height="240" Width="390" border="0">
when I ran my code that calls the Chromedriver, instead of seeing the annoying popup window that tells me that Chomedriver has been called, I get this!
So I changed my html page back to border="1" and got the very same result.
I have no idea what has changed from yesterday when this code worked perfectly (except for the annoying popup window) but something is causing my code to fail now that was working. Here is the code that calls Chromedriver.
from selenium import webdriver from selenium.webdriver.chrome.options import Options options = Options() options.add_argument("--headless") options.add_argument("window-size=398,256") browser = webdriver.Chrome(executable_path=r'C:\Python\Scripts\chromedriver.exe', options=options) browser.get('C:\DevCode\Label\Label_Formater.html') browser.save_screenshot("c:\DevCode\Label\Label.png") browser.close()Ideas? Thanks
Through a cloudy window,
Kip...
“Progress means getting nearer to the place you want to be. And if you have taken a wrong turn, then to go forward does not get you any nearer.
If you are on the wrong road, progress means doing an about-turn and walking back to the right road; and in that case the man who turns back soonest is the most progressive man.” ― C.S. Lewis
Kip...
“Progress means getting nearer to the place you want to be. And if you have taken a wrong turn, then to go forward does not get you any nearer.
If you are on the wrong road, progress means doing an about-turn and walking back to the right road; and in that case the man who turns back soonest is the most progressive man.” ― C.S. Lewis