Vladeouz opened a new issue, #1058:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/1058

   # Bug Report
   Im trying to accessing the data inside of HTMLCollection.
   
   ## Problem
   I cant accessing it, and retrieve the data.
   
   ### What is expected to happen?
   it should return the data inside the HTMLCollection
   
   
   
   ### What does actually happen?
   It always gives null.
   
   
   
   ## Information
   this is the result of the print
   
![image](https://github.com/apache/cordova-plugin-inappbrowser/assets/89472314/3b038858-cebc-4eb5-953c-6fd8b38c5e13)
   
   ### Command or Code
   `InAppBrowserRef.executeScript({
                         code: `
                           console.log('masuk di script');
                           window.addEventListener('DOMContentLoaded', function 
() {
                           console.log('Im here 1');
                             });
                           document.addEventListener('DOMContentLoaded', 
function () {
                           console.log('Im here 2');
                             });
                           window.addEventListener('load', function () {
                           console.log('Im here 3');
                             });
                           document.addEventListener('load', function () {
                           console.log('Im here 4');
                             });
                             const elements = 
document.querySelectorAll(".text-grey");
                             console.log('this is elements', elements);
                             console.log('this is the lengthnya', 
elements.length);
                             console.log('trying to open the 0 index', 
elements.item(0));
                             const newArray = Array.from(elements);
                             console.log('this is the new Array', newArray);
                             newArray.forEach(function (element) {
                             console.log('result of forEach', element);
                             });
                             Array.from(elements).forEach((element) => {
                             console.log(element.innerText)
                             });
                           `
                       },
                       function (result) {
                         console.log('Script Executed:', result)
                       })
                     }`
   
   
   ### Environment, Platform, Device
   Samsung A50s Android 11
   
   
   
   ### Version information
   Operating System - Windows_NT(10.0.22631) - win32/x64
   NodeJs - 16.20.1
   
   Global packages
     NPM - 8.19.4
     yarn - 1.22.19
     @quasar/cli - 1.3.2
     cordova - 12.0.0 (cordova-lib@12.0.1)
   
   
   
   ## Checklist
   - [x] I searched for existing GitHub issues
   - [x] I updated all Cordova tooling to most recent version
   - [x] I included all the necessary information above
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to