Skip to content

Commit

Permalink
added hasFocus attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
nizienko committed Nov 2, 2023
1 parent 64ce83b commit 406a0fd
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import org.assertj.swing.edt.GuiActionRunner
import org.assertj.swing.edt.GuiTask
import org.assertj.swing.hierarchy.ComponentHierarchy
import org.assertj.swing.hierarchy.ExistingHierarchy
import org.intellij.lang.annotations.Language
import org.w3c.dom.Document
import org.w3c.dom.Element
import java.awt.Component
Expand Down Expand Up @@ -77,6 +76,8 @@ class XpathDataModelCreator(private val textToKeyCache: TextToKeyCache) {
element.setAttribute("robot_target_element", "true")
}

element.setAttribute("hasfocus", hasFocus().toString())

val elementText = StringBuilder().apply { append(jClass).append(". ") }

val allFields = mutableSetOf<Field>()
Expand Down

0 comments on commit 406a0fd

Please sign in to comment.