Python Forum
How to make use of this button with selenium?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to make use of this button with selenium?
#1
Any one know how to get a usful ID from this:

//*[@id="main-content"]/div/div[2]/div/div[1]/div/div/div[12]/div/div[2]/div/header/div/span/button/div/div[1]

The ider is to klick the buttom like this

element=browser.find_element(By.ID,"main-content")
element.click()

Here is a bunch of other stuff derived from inspecting the element:

<div class="Flexbox__StyledFlexbox-sc-1ob4g1e-0 fRAfnA">Visa fler</div>
<div class="Flexbox__StyledFlexbox-sc-1ob4g1e-0 fRAfnA">Visa fler</div>

#main-content > div > div.CssGrid__RawCssGridItem-sc-bu5cxy-1.CssGrid___StyledRawCssGridItem-sc-bu5cxy-2.eKPANb.fOyzj > div > div.PageWrapper__Outer-sc-1ur2ylx-



I believe the first two line is Xphay and the other one im not sure.
Reply


Messages In This Thread
How to make use of this button with selenium? - by Nohah - Sep-22-2022, 10:22 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Selenium press "select option" button (SOLVED) kucingkembar 0 746 Aug-10-2023, 11:49 AM
Last Post: kucingkembar
  Click on a button on web page using Selenium Pavel_47 7 4,738 Jan-05-2023, 04:20 AM
Last Post: ellapurnellrt
  Log In Button Won't Click - Python Selenium Webdriver samlee916 2 3,848 Jun-07-2020, 04:42 PM
Last Post: samlee916
  Error clicking button with selenium julio2000 4 5,383 Jan-06-2020, 10:59 AM
Last Post: julio2000
  Selenium click on popup button??? GuJu 7 7,964 Jul-20-2019, 09:21 AM
Last Post: Nizam
  Error in Selenium: CRITICAL:root:Selenium module is not installed...Exiting program. AcszE 1 3,649 Nov-03-2017, 08:41 PM
Last Post: metulburr
  Click on a Drop-down button with selenium Python AcszE 3 7,350 Oct-25-2017, 03:13 PM
Last Post: vardhhan

Forum Jump:

User Panel Messages

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