Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QAF with 4.0.0-RC3 and selenium 4.25.0 – When using QAF 4.0.0-RC3 with Selenium 4.25.0, the QAFWebComponent web element does not store the updated value; instead, it retains the old value. This issue does not occur with QAF 3.1.0. #462

Open
3 of 4 tasks
Ajayfollows opened this issue Dec 9, 2024 · 0 comments

Comments

@Ajayfollows
Copy link

QAF Version

QAF with 4.0.0-RC3 and selenium 4.25.0

the QAFWebComponent web element does not store the updated value but retains the old value.

Expected behavior

The variable updatedText should store the updated value.

Actual behavior

The variable updatedText retains the old value instead of storing the updated one. This behavior is seen in components only.

Is the issue reproducible on runner?

  • QAS
  • Maven
  • Gradle
  • [] Ant
  • Eclipse

Test case sample

public class TestComponent extends QAFWebComponent {

public TestComponent(String locator) {
super(locator);
// TODO Auto-generated constructor stub
}
@findby(locator = "someValidLocator")
private QAFWebElement testElement;

public void getextValue () {
  
   String initText = testElement.getText(); // initText get the value say TextValue111
   testElement.click(); // This updates the element-testElement and getText value updates to say TextValue222. (Locator is unchanged)
   //
   String updatedText = testElement.getText(); //updatedText still gets TextValue111 instead of TextValue222
  
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant