Unable to choose element within the interfaces of the DWR 921 Router's management page

When attempting to utilize Selenium in Python to send SMS using my DLink DWR-921 router, I am encountering an issue where I cannot select any element on the document. I have tried using td, table, and body, but none of them seem to work. Additionally, I attempted to use browser JavaScript for the same elements with document.getElementsByTagName(), but it only returned an empty HTMLCollection. Can someone explain why the elements on the page are not selectable?

Update: To ensure the DOM has been properly and fully loaded, I took a screenshot and confirmed that it loads every time the code is run. https://i.sstatic.net/2wphR.png Router model: DLink DWR-921

SW Version: V01.01.3.016

Answer №1

Make sure to search for an input tag.

It's possible that the elements are contained within an Iframe. Selenium may have trouble locating elements inside iframes, so you'll need to instruct it to switch into the iframe:

driver.switchTo().frame("firstframe");

or

driver.switchTo().frame(0);

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

What could be the reason for typescript not issuing a warning regarding the return type in this specific function?

For instance, there is an onClick event handler attached to a <div> element. The handler function is supposed to return a value of type React.MouseEventHandler<HTMLDivElement> | undefined. Surprisingly, even if I return a boolean value of fal ...

Interacting with elements on a webpage in Selenium once the popup has been dismissed

I am trying to change the language on habr.com by clicking on a popup window that appears at the bottom of the page. However, after closing the popup, I am unable to interact with any elements on the page. How can I fix this issue and make the items access ...

Avoiding Repetition in Vue.js with Vuex

When approaching repetitions in my code with Vue.js and Vuex, I often encounter similar mutations that need to be handled separately. For instance, I have mutations for both Services and Materials that share a lot of similarities. The first mutation is ...

Printing keys of objects in an array in AngularJS through iteration

Here is an array of objects that I am attempting to iterate in ng-repeat and print keys, but I am facing some challenges. $scope.directivesInfo = [ {"ngRepeat": {"enter": true, "leave": true, "move": true, "add": false, "remove": false}}, {"ngView ...

Loop through the elements of one array using the indexes from a second array

Hey there! I need help with the following code snippet: let names = ["josh", "tony", "daniel"]; let arrayplaces = ["30", "60", "90"]; names.forEach((elem, indexed) => { const num2 = arrayp ...

Unable to access the 'data' property because it is undefined in AngularJS, making it impossible to retrieve data from the template to the controller

I am new to angularjs and still learning its intricacies. Currently, I am facing an issue where I can't seem to find a simple solution. I hope someone can assist me with this. Here is the folder structure that I have created: Select ->SelectModu ...

Unable to set background-image on Node (Limited to displaying only images sourced from Flickr)

I am experiencing difficulty with the background-image node property not functioning properly. In order to test this issue, I am using the "Images & breadthfirst layout" demo as an example (accessible at https://gist.github.com/maxkfranz/aedff159b0df0 ...

Resize a span's width using the width of another element using only CSS

Website Development <div class="container"> <div id="setter"> <span>some unique content here</span> </div> <div class="wrap"> <span> different text goes here, different text goes here, diffe ...

Guide to modify target blank setting in Internet Explorer 8

<a href="brochure.pdf" target="_blank" >Click here to download the brochure as a PDF file</a> Unfortunately, using 'target blank' to open links in a new tab is not supported in Internet Explorer 8. Are there any alternative solutio ...

Exploring JSON and jQuery to Address Filtering Challenges

Excuse the interruption, but I need some assistance with my filters. Below is the code I'm currently working on; however, none of my attempts have been implemented yet (the dropdown menu and checkboxes remain non-functional) to make it easier for you ...

How come the button is still visible when a new component is loading?

When I click the view more button, I am attempting to load items from an RSS feed. The items are loaded successfully, but the button remains visible on the page. What mistake am I making and how can I rectify this issue? Here is the initial display before ...

There is no overload that matches this call. The previous overload resulted in an error stating that type 'text' cannot be assigned to type 'json'

I am attempting to retrieve an HTML page from my API using Angular and including JWT tokens in the header. However, when I do not specify the response type as text, the compiler returns a parsing error (as it initially tries to parse the HTML as JSON), so ...

Issue with Loading Data on AJAX Causing Scrolling Difficulties

Currently, I am in the midst of website development using PHP, MySQL, and JavaScript (JQuery + Ajax). One issue that has arisen is with the customer scroll function and scrollbars. When loading data via ajax, the scroll function is generating numerous erro ...

Adding content into a designated position in a document

My challenge is to find the index of user-provided data in order to insert new data at that specific point. I am familiar with array insertion methods, but extracting the index provided by the user is where I'm stuck. My current approach involves filt ...

The directional rotation plugins of GSAP are incompatible with the plugins of PIXI

I've been experimenting with using directional rotation plugins in combination with pixi.js plugins. Unfortunately, I'm encountering some issues. If you check out the codepen link: https://codepen.io/asiankingofwhales/pen/RyNKBR?editors=0010, yo ...

"Utilizing the GET route in node.js with the express framework requires the use of a

As a newcomer to node + express, I'm facing challenges in configuring a get route. When utilizing a parameter within the specified route below, data is retrieved without any problems. However, when attempting to return an object without the parameter, ...

Invisible reCaptcha: The Unseen AJAX Request

I am having difficulty implementing the invisible reCaptcha on my website. I have followed these steps: header <!-- Invisible reCaptcha --> <script src="https://www.google.com/recaptcha/api.js" async defer></script> form.php <f ...

value in the text field changing when focused

Is there a JQuery solution for displaying the keyword when text is entered in the value input? Click here to view an image example. ...

ColorBox fails to recognize the script running in the background

To display images, I am using a colorbox. Here is the code that calls the images: jQuery(".ImgPop").colorbox({ opacity: 0.4, rel: 'ImgPop', iframe: false, width: '770px', height: '680px', scalePhotos: ...

A method to efficiently send multiple axios GET requests by incrementing the URL parameters

Is there a way to efficiently send multiple HTTP GET requests using Axios? For instance: let maxRequests = 3000; let currentRequest = 0; do { currentRequest = currentRequest + 1; await response = axios.get(`https://example.com/${currentRequest}` ...