I need to write one thing within the “Seek for Place or Firm” textfield, however I can’t.
I outlined “Accessibility identifier” and Additionally there may be placeholder referred to as “Seek for a place or firm” however I cannot sort one thing at textfield .
Once I use “File UI Take a look at” function and run the generated codes after which use that code , it nonetheless does not work.
You’ll be able to see the code block and screenshot under.
func testAUgur() {
//First code block
let uVar = app.textFields["positionCompanySearch"]
uVar.faucet()
uVar.typeText("Take a look at")
}
//Second code block
let placeHolder = app.textFields["Pozisyon veya şirket ara"]
placeHolder.faucet()
placeHolder.typeText("check")
Once I execute under codes
if uVar.exists {
print("textview out there") }
else { print("textview not out there")
}
if !uVar.isHittable {
print("TextField not hitable .")
}
**Output** exhibits thats under **however** I already outlined identifiers. You'll be able to see at ScreenShot.
t = 5.52s Checking existence of `"positionCompanySearch" TextField`
textview not out there
t = 6.40s Discover the "positionCompanySearch" TextField
t = 37.41s Discover the "positionCompanySearch" TextField (retry 1)
t = 68.43s Discover the "positionCompanySearch" TextField (retry 2)
TextField not hitable .
I additionally used sleep methodology however its not labored too 🙂
Word : This web page is current