Not a examen

Create an engaging and colorful illustration of a Java programmer working on Selenium automation, with code snippets and icons representing testing tools in a digital environment. The atmosphere should be dynamic and inviting for learners.

Java and Selenium Quiz

Put your knowledge of Java and Selenium to the test with this engaging quiz! Perfect for developers and testers alike, this quiz includes 12 questions designed to challenge your understanding of programming concepts, automation, and best practices.

Join us to assess your skills and learn new insights about:

  • Java fundamentals
  • Selenium automation
  • CSS selectors
  • Test-driven development
  • Efficient element locators
12 Questions3 MinutesCreated by DebuggingFalcon157
Cual opcion NO permite iterar el siguiente codigo:

ArrayList<String> nombres = new ArrayList<String>();
nombres.add("Jorge");
nombres.add("Chalino");
nombres.add("Tito");
 
 
For(String nombre : nombres){}
For(int I = 0;i++){}
for(int I = 0 ; i<nombres.size() ; i++){}
for(int I = nombres.size() - 1; i>=0 ; i--){}
Cual es el output del siguiente codigo:
 
public static void main(String[] args) {
String city = "guadalajara";
System.out.println(city.substring(2, 5));
}
Ada
Uad
Ad
Syntax Error
Cual es el output del siguient codigo
 
public static void main(String[] args) {
String[] cars = {"ferrari","maclaren","nissan"};
System.out.println(cars[1].split("l")[0]);
}
Aren
Ferr
Al
Mac
En el siguiente documento se guardan las configuraciones de un proyecto de maven
Pom.html
Pom.xml
Pom.json
Selenium puede usarse para automatizar acciones fuera del navegador
True
False
Ordena las estrategias para localizar elementos (el mas eficiente en tiempo primero)
Id
Css
Xpath
Cual de los siguientes NO es un Css selector valido
.something
#something
//something
[something=somevalue]
Elige los locators validos para el siguiente elemento:
 
div class="b_searchboxForm" role="search" data-bm="2">
.b_searchboxForm
//[div and class()="b_searchboxForm"]
//div[@class="b_searchboxForm"]
Div > #b_searchboxForm
Completa el siguiente script de selenium
 
    @Test
    public void loginWithoutWaits() {

    ChromeDriver driver;
    By userName = By.name("username");
    By password = By.name("password");
 
    driver.get("https://www.stealmylogin.com/demo.html");
      {Respuesta}
    driver.findElement(loginBtn).click();
    String expectedResult = "Example Domain";
    assertEquals(driver.findElement(resultTitle).getText() , expectedResult);
    }
    driver.findElement(userName).sendKeys("user");
    driver.sendKeys(findElement(userName));
    driver.findElement(userName).writeText("user");
Cual de los siguientes es un Wait explicito
System.pause(10000)
Thread.wait(Duration.ofSeconds(10))
Wait.until(ExpectedConditions.elementToBeClickable(loginBtn)).click();
Driver.manage().timeouts().implicitlyWait(Duration.ofSeconds(60));
Cual es el resultado del siguiente test
 
    @Test
    public void testDemo2(){
        System.out.println("This is a demo test");
        String cadena = "This is a title string";
        String cadena2 = "This is not a title string";
        Assert.assertTrue(cadena != cadena2);
    }
 
 
Pass
Fail
Selecciona las caracteristicas que describan al Page Object Model
Page Objects and test methods are defined in the same class
Web pages are represented by a corresponding class
Is an actor centric system, it's based around the user experience model, where we have actors
Is a development method that encourages communication between teams
{"name":"Not a examen", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"Put your knowledge of Java and Selenium to the test with this engaging quiz! Perfect for developers and testers alike, this quiz includes 12 questions designed to challenge your understanding of programming concepts, automation, and best practices.Join us to assess your skills and learn new insights about:Java fundamentalsSelenium automationCSS selectorsTest-driven developmentEfficient element locators","img":"https:/images/course2.png"}
Powered by: Quiz Maker