Greetings everyone, I am a newcomer to Python Selenium and currently working on automating a website. However, I have encountered an issue with the search text box of the website as it does not feature any clickable buttons once the text is entered.
Here are the methods I have attempted:
1) Using driver.sendkeys - unfortunately, this did not work.
2) Trying JavaScript executor - while this method successfully sends the data, I am unsure how to send the Enter/return key.
driver.execute_script("document.getElementsByClassName('tau-search__input')[0].value ='" + var+"'");
3) Utilizing the Action Chains Class - despite my efforts to send keys, the desired result was not achieved.
In addition, the highlighted search icon is also unable to send data; we can only input values and press Enter at the end. View image description here
Furthermore, there are no frames present in this scenario. Any assistance would be greatly appreciated.