score:1
Accepted answer
use webdriverwait
to wait until button will be clickable and then click. for the button you can use xpath //button[.='rechercher']
.
from selenium import webdriver
from selenium.webdriver.common.by import by
from selenium.webdriver.support.ui import webdriverwait
from selenium.webdriver.support import expected_conditions as ec
# ...
driver.get("https://www.leboncoin.fr/annonces/offres/lorraine/")
wait = webdriverwait(driver, 5)
wait.until(ec.element_to_be_clickable((by.xpath, "//button[.='rechercher']"))).click()
Source: stackoverflow.com
Related Query
- Best way to find React button with selenium?
- What is the best way to deal with a fetch error in react redux?
- Best way to deploy react app with gitlab-ci?
- Best way to submit FORM data with React Redux?
- Best way to add asset path variable with React and JSX?
- <Query> vs graphql Hoc which is best way to hook graphql query with component in react apollo
- Can anyone advise on the best way to integrate React Drag/Drop Lists with dynamic values from Redux?
- Best way to navigate between pages and handle back button in react js
- what is the best way to use react router V6 navigation with redux and redux thunk actions?
- What is the best way for connecting Django models choice fields with React js select options
- What the best way to loading data to a cart react js with context api
- What's best way to config React components library with Webpack, typescript, css modules and SASS
- The best way to modify react state property with React Hooks
- In React is there a way to remount a component with a button click from another component?
- Stuck with two way binding in React JS. I can't able to access two datas with a single button click
- What is the best way to render multiple button components with different values?
- Way to pass value during Button on click to another component with async in react
- How do I reset a field with a button and is there a more concise way of writing this React
- Best way to consume javascript data blocks with react or web components?
- With React what is the best way to handle conditional classes
- What is the best way to connect React js app with node js server?
- Best way to set translated document title (HTML tag) in React with react-i18next
- Best Way to Implement Login with this React Example
- What is the best way to define "KEY" in React when creating a list with map function from an array which containing no unique ID or fields?
- Best way to update object with react redux
- I can't find a way to make sockets work with react and nodejs
- Best way to send data with React Router <Link>
- Cant find a button in react testing library with getByDisplayValueText
- Best way to write integration tests in React with Redux and Enzyme
- What is the best way to store data with React Redux but by condition?
More Query from same tag
- Typescript error on local machine but not on remote test server
- Can't wrap a Menu.Item with Link
- Passing onChange events through the state
- react axios - losing this context despite using arrow functions
- gradient color to <img> tag
- How to put a input form component overlay on ReactMapGL component?
- How to distinguish different form inputs in React?
- How to set App bar component without iconElementLeft?
- Add thousand separators to chartist.js
- reactjs/material-ui app is whooping 917kb in production build! What do I do to decrease size?
- How do i map a JSON API response that contains an array of objects to an ag-grid table
- Why are props being modified when clicking on a route?
- How to push new value to array state in react
- How to output datocms graphql query with an array inside multiple posts
- onClick is not defined MERN stack
- Unable to loop single react component
- Is it possible to stub out or spy on the setState method in React when doing unit tests?
- How do I change the scope of the service worker sw.js
- Foreground Text has same filters as background
- data.json is not a function reactjs using Fetch API
- Axios post request body not parsing with mux server
- what is the purpose of ...this.props.pokemon and how's it different from this.props.pokemon
- Can't return icon according to incorrect written if/else statement
- Firebase hosted website won't load (but loads locally)
- Why useEffect doesn't set balance on Web3 and React?
- How to combine multiple response , where function take different parameter, to give different response from a single function?
- Couldn't route to private route with react router v6 and firebase v9
- Using React Context in a custom hook always returns undefined
- How to align AntDesign Timeline to the left
- How to make an overflow object scrollable or start from the right?