Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
selenium Ctrl + F input
#4
(Jul-14-2019, 11:10 AM)metulburr Wrote: AH OK, so you cant do this with selenium alone then?
No,can call it as you do,but when box is open it's not html so then there is nothing to select and send to.

How it work with html.
<form>
  User name:<br>
  <input type="text" name="username"><br>
  User password:<br>
  <input type="password" name="psw">
</form>
Then from Selenium can find that element bye name,Xpath,CSS...,and send character to that element.
elem = driver.find_element_by_name('username')
elem.send_keys('Kent')
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,036 Sep-26-2020, 04:34 PM
Last Post: Larz60+
  Error in Selenium: CRITICAL:root:Selenium module is not installed...Exiting program. AcszE 1 4,612 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