1:) Add a folder selection to your project. (You can choose to read only or delete what you read.)
2:) Create a folder and keep the cookies in separate txt files.
3:) After starting the project, transfer the variable from the folder selection to Read File. Change the name FILE_CONTENT to COOKIE.
4:) Call the COOKIE variable in the previous process and perform the Network/Restore Cookies process.
5:) Open google.com in the browser, the cookie will be added.
Не могу получить доступ к canvas
-
@andrewmax said in Не могу получить доступ к canvas:
Бас ругается «Can't find variable: document»
Очень странная ошибка, как будто ничего не загружено в браузере BAS.
Ничего не тестил. Не знаю будет ли работать:
Страница:
<iframe id="myIframe" src="iframe-content.html"></iframe>Код:
var iframe = document.getElementById('myIframe'); var canvas = iframe.contentWindow.document.getElementById('мойканвас'); -
@andrewmax said in Не могу получить доступ к canvas:
Выполняю код
var canvas = document.getElementById('мойканвас');Бас ругается «Can't find variable: document»
Как добраться до этого canvas. Может проблема в том что он находиться внутри iframe?
Используйте действие "Яваскрипт", а не действие "Выполнить код"