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

[BUG]: SELECT not working with Healenium Web Driver. #262

Open
prakashkp88 opened this issue Jan 24, 2024 · 0 comments
Open

[BUG]: SELECT not working with Healenium Web Driver. #262

prakashkp88 opened this issue Jan 24, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@prakashkp88
Copy link

Describe the bug

I am trying to select a value from a dropdown using text attribute. When I use remote selenium driver it works fine but after creation of selfhealing driver using Healnenium web its not able to select the value. There is no error as such but value is not selected on the application.

Code sample:
WebElement element = driver.findElement(By.id ("OrganizationType"));
Select oSelect = new Select(element);
oSelect.selectByVisibleText("Association");
Console Error:
healenium.execute - Failed to find an element using locator [By.xpath: .//option[normalize-space(.) = "Association"]] on page null

Healenium Web Version : 3.4.8
Spring boot version: 3.2.2
Selenium Version:- 4.14.1
JDK Version:- 21.0.1

If i comment the "SelfHealingDriver.create(driver)" and run the application, testing is executed without any error. Using Healenium Web I am getting this error only for SELECT action.

How to reproduce the issue

Code:-
RemoteWebDriver delegate = openbrowser.setup(appurl, <application>, <browser>);

WebDriver driver = SelfHealingDriver.create(delegate);

Selenium Execution Failure Code:-

WebElement element = driver.findElement(By.id ("OrganizationType"));
Select oSelect = new Select(element);
oSelect.selectByVisibleText("Association");

Logs appeared during using Healenium

healenium.execute - Failed to find an element using locator [By.xpath: .//option[normalize-space(.) = "Association"]] on page null

healenium.execute - Trying to heal..

Expected behavior

No response

Actual behavior

No response

Healenium Web version

3.4.8

Healenium Backend version

3.4.2

Selenium version

4.14.1

Platform

Java

Properties file

Default Healenium Properties

Additional context

No response

@prakashkp88 prakashkp88 added the bug Something isn't working label Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants