Jump to content

mLipok

MVPs
  • Posts

    11,512
  • Joined

  • Last visited

  • Days Won

    61

mLipok last won the day on September 13

mLipok had the most liked content!

About mLipok

  • Birthday 07/19/1978

Profile Information

  • Member Title
    I'm nitpicky sometimes.
  • Location
    Europe, Poland, Upper Silesia, Zabrze
  • Interests
    ¯\_(ツ)_/¯

Recent Profile Visitors

27,409 profile views

mLipok's Achievements

  1. May you release it on github.com ? Then we be able to look over enttire udf and have a better look
  2. Yes just hide the window, or do not show them at all.
  3. @maniootek there was a change in the API, you can use officiall API: https://viesapi.eu/vies-rest-api-documentation/ or just simply use the REST API as web site: https://ec.europa.eu/taxation_customs/vies/#/vat-validation is using all the time. Just try this: #include <InetConstants.au3> #include <MsgBoxConstants.au3> #include <StringConstants.au3> _Example() Func _Example() Local $sData $sData = _VIES_REST_API('NL', '815605468B01', 'DE', '245838579') MsgBox($MB_SYSTEMMODAL, "", "The number of bytes read: " & @extended & @CRLF & @CRLF & $sData) $sData = _VIES_REST_API('NL', '815605468B02', 'DE', '245838579') MsgBox($MB_SYSTEMMODAL, "", "The number of bytes read: " & @extended & @CRLF & @CRLF & $sData) $sData = _VIES_REST_API('DE', '245838579', 'NL', '815605468B01') MsgBox($MB_SYSTEMMODAL, "", "The number of bytes read: " & @extended & @CRLF & @CRLF & $sData) $sData = _VIES_REST_API('DE', '245838579', 'NL', '815605468B012') MsgBox($MB_SYSTEMMODAL, "", "The number of bytes read: " & @extended & @CRLF & @CRLF & $sData) EndFunc ;==>_Example Func _VIES_REST_API($s_Country, $s_VatNumber, $s_requesterCountry, $s_requesterVat) ; Read the file without downloading to a folder. The option of 'get the file from the local cache' has been selected. Local $dData = InetRead('https://ec.europa.eu/taxation_customs/vies/rest-api/ms/' & $s_Country & '/vat/' & $s_VatNumber & '?requesterMemberStateCode=' & $s_requesterCountry & '&requesterNumber=' & $s_requesterVat, $INET_FORCERELOAD) ; The number of bytes read is returned using the @extended macro. Local $iBytesRead = @extended ; Convert the ANSI compatible binary string back into a string. Local $sData = BinaryToString($dData, $SB_UTF8) ; Display the results. Return SetExtended($iBytesRead, $sData) EndFunc ;==>_VIES_REST_API
  4. My further experience with this issue has led me to rule out the issue being related to WebDriver. This problem only affects the browser startup itself, during which a new profile directory is created. Using such commands after closing FF there is a problem with deleting entire directory created by FF. Maybe someone else is having the same problem with their AV software? Of course, adding exceptions to the AV doesn't help.
  5. I'm 47 years old. Have my own business. I employ 4 people. Working with "bussiness psychologist" mostly on communication and management in bussines in relation to HR. So. No I do not think so. I think that, You simply haven't thought enough about the meaning of my statement. I know it's sometimes difficult, mainly because of my poor English. BTW. I see JOS and I are still trying to be polite to you. Please respect this.
  6. The only thing is that you are creating time pressure on people who devote their time here on a NON PROFIT basis. Lets revert your question: Have you signed any agreement that obligates anyone to respond to your question within the required timeframe ? If not, I suggest you be more patient, understanding, and formulate your thoughts better, meaning to consider not only your own needs but also respect the time of others. And this is not just about communication in relation to AutoIt forum members, but also in your life in general. p.s. Please don't take my answer as offensive, but rather as advice from a kind person.
  7. @junkew So far, I've done some minor research – initial tests and minor code modifications. I intend to share my proposals, but I need to be sure I'm working on the latest version of what you have. Therefore, please share the current files.
  8. @junkew please provide current UDF and example files. Maybe GitHub site ?
  9. I wonder if it is possible to change the download directory for such a connected session? EDIT2: or any other capability for example: _WD_CapabilitiesAdd("prefs", "pdfjs.disabled", True) _WD_CapabilitiesAdd("prefs", "browser.download.folderList", 2) _WD_CapabilitiesAdd("prefs", "browser.download.dir", $s_Download_dir) _WD_CapabilitiesAdd("prefs", "browser.download.useDownloadDir", True) _WD_CapabilitiesAdd("prefs", "browser.download.alwaysOpenPanel", False) _WD_CapabilitiesAdd("prefs", "browser.helperApps.neverAsk.saveToDisk", "application/zip, application/pdf, application/octet-stream, application/xml, text/xml, text/plain") _WD_CapabilitiesAdd("prefs", "browser.helperApps.neverAsk.openFile", "application/zip, application/pdf, application/octet-stream, application/xml, text/xml, text/plain") _WD_CapabilitiesAdd('prefs', 'browser.helperApps.alwaysAsk.force', False) ; CLEANUP for GDPR reason _WD_CapabilitiesAdd('prefs', 'browser.helperApps.deleteTempFileOnExit', True)
  10. found some related problem: https://github.com/SeleniumHQ/selenium/issues/14652 and posted new issue: https://github.com/SeleniumHQ/selenium/issues/16210
  11. This script provides a solution to the question: How to attach to FireFox instance launched via cmd: #include <MsgBoxConstants.au3> #include "wd_helper.au3" _Example() Func _Example() ; launch FireFox like in CMD ; https://stackoverflow.com/questions/44277119/how-to-connect-selenium-webdriver-to-existing-firefox-chrome-browser-session Run('"C:\Program Files\Mozilla Firefox\firefox.exe" --marionette -profile C:\FirefoxTEMP') ; configure WebDriver to connect to the previously launched FireFox _WD_Option('Driver', 'geckodriver.exe') _WD_Option('DriverParams', '--log trace --connect-existing --marionette-port 2828') _WD_Option('Port', 4444) _WD_Startup() Local $sSession = _WD_CreateSession() _WD_Navigate($sSession, "https://www.autoitscript.com/forum") MsgBox($MB_OK + $MB_TOPMOST + $MB_ICONINFORMATION, @ScriptName, "After attaching") _WD_Shutdown() EndFunc ;==>_Example
  12. Working example: #include <MsgBoxConstants.au3> #include "wd_helper.au3" _Example() Func _Example() Run('"C:\Program Files\Mozilla Firefox\firefox.exe" --marionette -profile C:\FirefoxTEMP') _WD_Option('Driver', 'geckodriver.exe') _WD_Option('DriverParams', '--log trace --connect-existing --marionette-port 2828') _WD_Option('Port', 4444) _WD_Startup() Local $sSession = _WD_CreateSession() _WD_Navigate($sSession, "https://www.autoitscript.com/forum") MsgBox($MB_OK + $MB_TOPMOST + $MB_ICONINFORMATION, @ScriptName, "After attaching") _WD_Shutdown() EndFunc ;==>_Example
  13. https://stackoverflow.com/questions/44277119/how-to-connect-selenium-webdriver-to-existing-firefox-chrome-browser-session
×
×
  • Create New...