Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

237
Views
I can´t click on an element with selenium, how can i click anyways?

i want to click this element but its says another element would be clicked, but i dont care because it´s a select:

let input_provinces = await driver.findElement(By.id("select_provinces")).click();

Does anyone know how to force the click? Thanks!

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

I think you're using Selenium with JavaScript , I'm providing a suggestion, you can try this one if it works for you.

let input_provinces = await driver.findElement(By.id("select_provinces"));
JavascriptExecutor executor = (JavascriptExecutor)driver;
executor.executeScript("arguments[0].click();", input_provinces);

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!