Python Forum
Search box python selenium sendkeys
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Search box python selenium sendkeys
#1
Hi,
I am having issues with send keys..
I am trying to search numbers in whatsapp and select corresponding names in the recent chat and send message/files.
But after typing, when it is moved to next element find, the search box is cleared. So the message goes to last user to whom the file/message sent.
Instead of sendkeys, is there any alternative?
I am trying this through whatsappweb.
 v_elem=driver.find_element_by_class_name('_3u328')
 v_elem.send_keys(phone))
 driver.find_element_by_css_selector('span[class="_19RFN _1ovWX _F7Vk"]').click()
When after sendkeys sends the number to searchbox, when span class element find starts, the search box clears,
hence the first name in the recent chat gets sent the message/media.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  SendKeys not working SanjayGMusafir 4 458 Jan-16-2024, 12:07 PM
Last Post: EdwardMatthew
  Trying to use win32 Sendkeys to log into database overnight statiCat 0 4,170 Apr-28-2018, 03:59 PM
Last Post: statiCat
  How to specify a Unicode character with Autokey keyboard.sendkeys()? ineuw 5 5,908 Nov-04-2017, 08:43 PM
Last Post: ineuw

Forum Jump:

User Panel Messages

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