Jump to content

mLipok

MVPs
  • Posts

    11,344
  • Joined

  • Last visited

  • Days Won

    56

mLipok last won the day on July 27 2022

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

21,969 profile views

mLipok's Achievements

  1. Please try to use this modified: https://github.com/mlipok/au3WebDriver/blob/WinHttp.WinHttpRequest.5.1/wd_helper.au3 and check if it update driver when you for to update them.
  2. is not required WebDriver location for this UDF. When you copy all the files to the same directory ?
  3. Still I think you can do it better with winhttp.au3 EDIT: For example you should be able to handle connection to each account and just switch between them without a need to start/stop new connection for each loop iteration.
  4. hey @TheSaint did you see that ? EDIT: @TheSaint is like cookie monster when it comes to reading books
  5. Interestning. I have some issue with this program. May I send you my EPUB file to test ?
  6. Q1: Multpile times per each account ? Q2: How you loop them ? Q3: Do you close connection each time ? Q4: Do you store connection handle for each account separately ? Q5: Did you try winhttp.au3 ?
  7. Not by default. Using wd_demo.au3 you need to change COMBO BOX option to force driver update.
  8. you can find here on the forum new awesome CURL UDF which should be easier to convert from example you quoted
  9. You should read only part of file not entire at once. Display only part then goes to next part when user choose to look at the next part.
  10. Do you mean one of such feature: https://www.scrapingbee.com/webscraping-questions/selenium/how-to-block-image-loading-selenium/ https://stackoverflow.com/questions/35128850/java-selenium-chrome-driver-disable-image-loading https://stackoverflow.com/questions/48306556/selenium-webdriver-firefoxchrome-java-how-to-disable-image-loading https://stackoverflow.com/questions/61998191/avoid-load-images-and-other-resources-like-css-when-use-selenium-in-c-sharp ?
  11. https://github.com/Danp2/au3WebDriver/blob/master/wd_demo.au3 https://github.com/mlipok/Au3WebDriver-testing
  12. I use something like this: _Example() Func _Example() ..... ..... Local $s_CSS_Parser = _MY_CSSParser() Local $s_JavaScript = StringRegExpReplace(StringReplace( _ " let style = document.createElement('style'); " & @CRLF & _ " style.id = 'WEBDRIVER_CSSStyles-theme" & $IDX_Frame & "'; " & @CRLF & _ " style.innerHTML = `" & $s_CSS_Parser & "`; " & @CRLF & _ " document.documentElement.insertBefore(style, document.body.nextSibling); " & @CRLF & _ "", @TAB, ''),'\R','') Local $v_Result = _WD_ExecuteScript($sSession, $s_JavaScript) EndFunc Func _MY_CSSParser() Return StringReplace( _ " * { " & @CRLF & _ " line-height: 1 !important; " & @CRLF & _ " margin-top: 3px !important; " & @CRLF & _ " margin-bottom: 3px !important; " & @CRLF & _ " background-color: white !important; " & @CRLF & _ " } " & @CRLF & _ " " & @CRLF & _ " .alert-info { " & @CRLF & _ " color: black !important; " & @CRLF & _ " } " & @CRLF & _ " " & @CRLF & _ " img[alt='Logo aplikacji'], " & @CRLF & _ " header[class='ember-view'], " & @CRLF & _ " .container > div[class='vertical-offset'], " & @CRLF & _ " svg[role='img'], " & @CRLF & _ " div[class='row ember-view'], " & @CRLF & _ " div.container button, " & @CRLF & _ " div.navbar-header, " & @CRLF & _ " nav.navbar-default, " & @CRLF & _ " #ember271, " & @CRLF & _ " #ember292, " & @CRLF & _ " #ember420, " & @CRLF & _ " #ember419, " & @CRLF & _ " #ember455, " & @CRLF & _ " #ember457, " & @CRLF & _ " #ember484, " & @CRLF & _ " #ember491 { " & @CRLF & _ " display: none; " & @CRLF & _ " } " & @CRLF & _ "", @TAB, '') #cs * { line-height: 1 !important; margin-top: 3px !important; margin-bottom: 3px !important; background-color: white !important; } .alert-info { color: black !important; } img[alt='Logo aplikacji'], header[class='ember-view'], .container > div[class='vertical-offset'], svg[role='img'], div[class='row ember-view'], div.container button, #ember271, #ember292, #ember420, #ember419, #ember455, #ember457, #ember484, #ember491 { display: none; } #ce EndFunc ;==>_MY_CSSParser
×
×
  • Create New...