Python Forum
Selenium - "Element is not currently visible and may not be manipulated"
Thread Rating:
  • 2 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Selenium - "Element is not currently visible and may not be manipulated"
#3
(Oct-26-2016, 11:41 PM)Larz60+ Wrote: Now you can play around with it as much as you like without reloading each time.
You can also load the html file into an editor so you can manually search for variables.

Not an immediate fix for your problem, but perhaps will help with debugging
Little on wrong track here Lars60+,
because this site use JavaScript heavily and he shall also push a button(which load ouical.js).
The problem is that urllib(or Requests as you should have used) can not get this info.

Quote: It was still showing the daily page as if the button was never clicked on.
 FireFox web driver has a click() method,but when you load page trough PhantomJS(has no click() method) has to use other tool.
jQuery selector can be used and execute bye PhantomJS.

You can try this.
#weeklyView = driver.find_element_by_xpath('//*[@class="btn btn-default webinar-hover dfx-has-spinner hidden-xs"]')
#weeklyView.click()
driver.execute_script("$('#calendarbody > div:nth-child(12) > div.col-sm-2.calendar-home-weekly > button').click()")
Your indention is wrong in last two lines but this i guess is a copy fault.
The default path that 3.5 use is horrible,i would choose C:\Python35 so same as i had for 10-year ago C:\Python25 Shh python
Reply


Messages In This Thread
RE: Selenium - "Element is not currently visible and may not be manipulated" - by snippsat - Oct-27-2016, 06:04 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Selenium suddenly fails to find element Pavel_47 3 6,339 Sep-04-2022, 11:06 AM
Last Post: Pavel_47
  Clicking on element not triggering event in Selenium Python (Event Key is not in data dkaeloredo 2 4,296 Feb-16-2020, 05:50 AM
Last Post: dkaeloredo
  Selenium locating an element. JokerTux 3 2,712 Dec-28-2019, 08:50 AM
Last Post: snippsat
  Selenium returning web element instead of desired text newbie_programmer 1 5,207 Dec-11-2019, 06:37 AM
Last Post: Malt
  How to get visible text of Select Drop down ankitjindalbti 2 2,758 Jun-03-2019, 12:35 AM
Last Post: ankitjindalbti
  Python Selenium getting table element trengan 2 8,588 Dec-31-2018, 03:02 PM
Last Post: trengan
  Click Element if displayed using Selenium and Python giaco__mar 1 3,547 Dec-27-2018, 06:19 PM
Last Post: metulburr
  Selenium stale element reference test 1 2,777 Sep-19-2018, 10:19 PM
Last Post: test
  Simple Element Check Code in Selenium Not Working digitalmatic7 1 3,017 Feb-18-2018, 06:53 AM
Last Post: metulburr
  Selenium - Googlemaps element not visible Barnettch3 3 5,664 Jan-15-2018, 08:07 PM
Last Post: Barnettch3

Forum Jump:

User Panel Messages

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