I was trying to search for a url: https://rewards.bing.com/pointsbreakdown with the help of Selenium in Python so I wrote the following block of code
search_in_first = driver.find_element(By.ID, 'sb_form_q')
search_in_first.send_keys(search_random_word())
search_in_first.submit()
but it redirects to a new google/bing search webpage Wrong insted of Right. So I want to know how to get hold of the inbuilt search box in my python script.
I tried the following code block
search_in_first = driver.find_element(By.ID, 'sb_form_q')
search_in_first.send_keys(search_random_word())
search_in_first.submit()
to get hold of the search box but it doesn't work well and search in this box.
Inner search box:

instead of this:

If you want to follow the link, then you need to use.
driver get(url)