Skip to content

Commit 968562f

Browse files
Merge pull request #193 from jdi-testing/issue_183
fix not generated locators
2 parents 008e4c0 + dc89810 commit 968562f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/js/models/ConversionToCodeModel.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ function genCodeOfElements(parentId, arrOfElements, mainModel, isAutoFind) {
197197
mainModel
198198
);
199199
}
200-
if (complex[el.Type] && !isAutoFind) {
200+
else if (complex[el.Type] && !isAutoFind) {
201201
let fields = getFields(ruleBlockModel.elementFields[el.Type]);
202202
result += isSimple(el, fields)
203203
? simpleCode(
@@ -214,7 +214,7 @@ function genCodeOfElements(parentId, arrOfElements, mainModel, isAutoFind) {
214214
mainModel
215215
);
216216
}
217-
if (simple[el.Type]) {
217+
else if (simple[el.Type] || isAutoFind) {
218218
result += simpleCode(
219219
locatorType(el.Locator),
220220
el.Locator,

0 commit comments

Comments
 (0)