Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

173
Vistas
How to write test to cross-check data in selenium-javascript?

I have to check if data inserted in the web element is right or not, how can i do it using selenium-webdriver in javascript.

I want result of one of the function that i wrote somewhere else, how to get it. (This function is fetching some data from web using axios)

Test.js

const assert = require('assert');
const { Builder, WebDriver } = require('selenium-webdriver');
const { someFunction } = require('../react/services/someFunction');

ApiService.js

export async function someFunction(pid, val) {
  const response = await axiosInstance.put(
    `/${pid}`,
    val
  );
  return response.data;
}

Error:

import axios from 'axios';
^^^^^^
SyntaxError: Cannot use import statement outside a module
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda