Python Forum
How to click the button automatically using python
Thread Rating:
  • 1 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to click the button automatically using python
#4
(Nov-29-2017, 04:25 PM)purnima1 Wrote: This url is internal to our project so you cannot access it ,so if you can share any generic example I will try to implement it in my code
Its quite difficult help without seeing the html of the page your trying to manipulate. Your looking for an element using xpath. But its difficult to validate if your xpath with out looking at the webpage.

I also noticed, you have an ID for the tab your trying find. Why cant your just search for that element by an ID, rather than xpath. Because xpath could be quite tricky, it may return more than one elements which matched. If your guarantied to have unique ID's for each element in the page, best to use the id to lookup.

driver.find_element_by_id(...)
Alternatively - could you post the html where, the xpath your trying to match. That might be useful.
Reply


Messages In This Thread
RE: How to click the button automatically using python - by hshivaraj - Nov-29-2017, 04:33 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  cant click button by script at page michael1834 1 1,119 Dec-08-2023, 04:44 PM
Last Post: SpongeB0B
  Click on a button on web page using Selenium Pavel_47 7 4,790 Jan-05-2023, 04:20 AM
Last Post: ellapurnellrt
  Show HTML in Python application and handle click SamHobbs 2 2,766 Sep-28-2021, 06:27 PM
Last Post: SamHobbs
  button click error rafarangel 2 3,170 Feb-11-2021, 08:19 PM
Last Post: buran
  Log In Button Won't Click - Python Selenium Webdriver samlee916 2 3,879 Jun-07-2020, 04:42 PM
Last Post: samlee916
  How to click facebook message button JanelleGuthrie 2 2,447 May-14-2020, 06:02 PM
Last Post: Larz60+
  Contact form button click action Man_from_India 1 2,835 Feb-01-2020, 06:21 PM
Last Post: snippsat
  HOWTO? Login DSL Modem with Python Requests: need Click "Apply" Button Webtest 4 8,551 Aug-20-2019, 04:03 PM
Last Post: johnmina
  Selenium click on popup button??? GuJu 7 8,042 Jul-20-2019, 09:21 AM
Last Post: Nizam
  How to trigger click event on Button without ID/Name gahhon 7 14,074 Feb-10-2019, 03:06 PM
Last Post: gahhon

Forum Jump:

User Panel Messages

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