Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
selenium Ctrl + F input
#1
I am trying to get search text in Firefox via its built in "find in page" search Ctrl + F

You can easily achieve bringing up the searchbox via actionchains
ActionChains(self.browser).send_keys(Keys.CONTROL, "f").perform()
However i cant figure out how to send keys to the input box. There is no HTML for it. You cannot inspect the element because its not part of the page. So how can I input text into this inputbox?

Can you just arbitrarily just type keys instead of sending it to an element? Because once you bring up the search box it has focus.
Recommended Tutorials:
Reply


Messages In This Thread
selenium Ctrl + F input - by metulburr - Jul-13-2019, 11:18 AM
RE: selenium Ctrl + F input - by snippsat - Jul-13-2019, 06:24 PM
RE: selenium Ctrl + F input - by metulburr - Jul-14-2019, 11:10 AM
RE: selenium Ctrl + F input - by snippsat - Jul-14-2019, 12:04 PM
RE: selenium Ctrl + F input - by metulburr - Jul-14-2019, 01:12 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Code example for entering input in a textbox with requests/selenium object peterjv26 1 3,024 Sep-26-2020, 04:34 PM
Last Post: Larz60+
  Error in Selenium: CRITICAL:root:Selenium module is not installed...Exiting program. AcszE 1 4,606 Nov-03-2017, 08:41 PM
Last Post: metulburr
  Can't extract hidden input using Selenium!!! Shaggy89 1 3,469 Jul-12-2017, 12:24 PM
Last Post: metulburr

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020