Bonjour,

Cherchant � afficher une page web https://www.place-emploi-public.gouv.fr/ en cochant automatiquement des cases dans des listes et n'ayant aucune connaissance en programmation, j'ai utilis� Selenium IDE afin de g�n�rer un code.

Le souci est que ce code fait appel au framework selenium-webdriver.

Quelqu'un aurait-il les connaissances et la gentillesse de convertir ce petit code en javascript (sans liaison avec selenium) ?

Code : S�lectionner tout - Visualiser dans une fen�tre � part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Generated by Selenium IDE
const { Builder, By, Key, until } = require('selenium-webdriver')
const assert = require('assert')
 
describe('Biep', function() {
  this.timeout(30000)
  let driver
  let vars
  beforeEach(async function() {
    driver = await new Builder().forBrowser('firefox').build()
    vars = {}
  })
  afterEach(async function() {
    await driver.quit();
  })
  it('Biep', async function() {
    await driver.get("https://www.place-emploi-public.gouv.fr/")
    await driver.setRect(1772, 1305)
    await driver.findElement(By.id("main-search-filter-input-category")).click()
    await driver.findElement(By.css(".filter-item:nth-child(2) .checkbox-btn")).click()
    await driver.findElement(By.css(".category .cta")).click()
    await driver.findElement(By.id("main-search-filter-input-location")).click()
    await driver.findElement(By.css(".filter-item:nth-child(119) .checkbox-btn")).click()
    await driver.findElement(By.css(".location .cta")).click()
    await driver.findElement(By.css(".white")).click()
  })
})
Merci