Apologies for the vague title, can someone suggest a better one?
Here are the details of the issue I am encountering:
Website:
https://www.desmos.com/calculator/lzidy3m70r
Steps:
- Click on the + button on the top left
- Select images and upload an image
- Update values in the center, width, and height fields
Issue: Unable to interact with any of the text areas for center, width, and height. Keep receiving 'element not interactable' exception.
Here is the HTML https://i.sstatic.net/zDfkV.jpg
There is no input tag for the width field; only 2 separate span elements show '15', and the textarea is also not interactive.
Here is my XPath to identify the textarea or span:
//textarea[contains(@class,'dcg-smart-textarea') and text()='"+imageName+"']/parent::div/parent::div/following-sibling::div//span[@class='dcg-mq-textarea']/textarea
//textarea[contains(@class,'dcg-smart-textarea')]/parent::div/parent::div/following-sibling::div//span[@class='dcg-mq-root-block dcg-mq-editing-overflow-right']/span
I have tried various methods such as clicking on the div first and then attempting to type when the cursor is available, or clicking first, clearing, and then typing. However, after the click is successful, the next step fails with the 'element not interactable' exception.
I believe using JavascriptExecutor may be necessary to handle this situation, but I am not very familiar with JavaScript or how to deal with these fields.
Can anyone help me solve this problem and successfully enter values for the center, width, and height fields?