Jump to content

Recommended Posts

Posted

Hello,

I want the browser work without ever showing it. With the old function _IECreate it was enough to set the $iVisible parameter to 0.
Is there something equivalent with webdriver ?

I'm not talking about the console but about the browser.

I think it would be possible to do something with WinSetState, but I prefer if the browser never appear.

If this function does not exist, I still thank you for your work

Posted (edited)

 

  On 2/8/2022 at 6:04 PM, Danp2 said:

@czmasterThis is covered in the FAQ of the wiki (see link in signature)

Expand  

I already look the FAQ, but I only sea that we can hide the console and maximize the browser but no where hide the browser.

image.png.d7f8373715b3c6b2d95e34bd657c2d5c.png

What I want.

image.png.1e11811b66d54da9c1faccfd4c0215e3.png

 

Thank you.

 

 

Edited by czmaster
Posted
  On 2/8/2022 at 7:49 PM, Danp2 said:

You didn't look close enough 😉

image.png.5e8f9e990a16677f5b550d84df3a5cfc.png

Expand  

maybe we need to change this description .....headless mode (hidden)

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

Hi @mLipok,

  On 2/8/2022 at 11:12 PM, mLipok said:

maybe we need to change this description .....headless mode (hidden)

Expand  

Agreed 👍 . Most of the people who ask for help regarding WebDriver automation doesn't know about the specific terms.
In this specific case the phrase "How to run the browser hidden or invisible" would be much more the expected search, in my opinion.
Or even more search friendly: "How to run the browser hidden or invisible (headless)".

I am sure we will further discuss about the FAQs and their content in the GitHub issue (regarding the upcoming 🤞 ReadMe change).

Best regards
Sven

________________
Stay innovative!

==> AutoIt related: 🔗 GitHub, 🔗 Discord Server, 🔗 Cheat Sheet

  Reveal hidden contents
Posted
  On 2/8/2022 at 7:49 PM, Danp2 said:

You didn't look close enough 😉

image.png.5e8f9e990a16677f5b550d84df3a5cfc.png

Expand  

I had seen this Headless mode, but actually I hadn't understood that it corresponded to a hidden mode. I was rather thinking that it would display a web page without the address bar and without any menu.

Anyway I have my answer, thank you.

Posted
  On 2/9/2022 at 7:44 AM, SOLVE-SMART said:

Or even more search friendly: "How to run the browser hidden or invisible (headless)".

Expand  

 

  On 2/9/2022 at 9:31 AM, czmaster said:

I had seen this Headless mode, but actually I hadn't understood that it corresponded to a hidden mode.

Expand  

 

Changed WiKi to:  8. How to run the browser in headless mode (hidden mode)

It must be assed in bracket as this is not common name in WebDriver world. The common name is "headless mode".

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

  • Danp2 changed the title to WebDriver UDF (W3C compliant version) - 02/11/2022
Posted
  On 2/1/2022 at 2:19 PM, Danp2 said:

@mLipok Have you tried something like this?

Local $sPref = 'browser.helperApps.neverAsk.saveToDisk'
Local $sValue = 'text/plain,text/csv,application/csv,application/vnd.ms-excel,text/comma-separat‌ed-values,application/excel,application/octet-stream'
_WD_CapabilitiesAdd('prefs', $sPref, $sValue)

 

Expand  

This not works well.

I still have this:

image.png.6619faac8ea0e374ca8148e35a351110.png

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

I try to use both options:

_WD_CapabilitiesAdd('prefs', 'browser.helperApps.neverAsk.saveToDisk', 'application/pdf')
_WD_CapabilitiesAdd('prefs', 'browser.helperApps.neverAsk.saveToDisk', 'text/plain,text/csv,application/csv,application/vnd.ms-excel,text/comma-separat‌ed-values,application/excel,application/octet-stream,application/pdf')

I even play with manually set this value in "about:config" 

 

Here: https://gist.github.com/Kannamaraj/4ca929c4e63cc39958e75d5126c113ad
I found interesting prefs: 
fp.setPreference("pdfjs.disabled", true);

 

Here is good example test:

www.africau.edu/images/default/sample.pdf

I will create repro code.

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

$FilesInZip = $oShell.NameSpace($sTempFile).items
$FilesInZip = $oShell.NameSpace($sTempFile)^ ERROR

 

Getting Following Error While Using Update Chromedriver Option.

Posted

Hi @n3wbie,

There's a fix for this coming in the next release. If you want to test the fix, you can either download the revised wd_helper.au3 from Github or make the following change to your local version --

;                       $FilesInZip = $oShell.NameSpace($sTempFile).items
                        Local $oNameSpace = $oShell.NameSpace($sTempFile)
                        $FilesInZip = $oNameSpace.items

 

Posted (edited)

\wd_helper.au3" (1408) : ==> The requested action with this object has failed.:
$FilesInZip = $oNameSpace.items
$FilesInZip = $oNameSpace^ ERROR

 

Still Getting Same error Downloaded Updated Version From Git Repo

  On 2/16/2022 at 12:21 PM, Danp2 said:

Hi @n3wbie,

There's a fix for this coming in the next release. If you want to test the fix, you can either download the revised wd_helper.au3 from Github or make the following change to your local version --

;                       $FilesInZip = $oShell.NameSpace($sTempFile).items
                        Local $oNameSpace = $oShell.NameSpace($sTempFile)
                        $FilesInZip = $oNameSpace.items

 

Expand  

 

Edited by n3wbie
Made Mistake Quoting Error
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...