1from selenium.webdriver.common.keys import Keys
2tb.send_keys(Keys.ENTER)
3
4
5## In some pages, there is no submit button to submit the query, instead, it requires
6## hitting enter button to submit the query.
7## So in that case, we need to press enter button.
8## To do that we need to import the above module.
9## Then after we need to specify the textbox (in my case,it is tb)
10## for which we want to hit enter button and
11## submit the query, and then using send_keys(), we need to
12## pass value inside it which is ENTER button.
13## It worked in my case, hope it work for yours :)