healenium / healenium-web

Self-healing library for Selenium Web-based tests
Apache License 2.0
169 stars 40 forks source link

Getting error "javascript error: Cannot read properties of undefined (reading 'toLowerCase')" #155

Open Vishnupk1993 opened 2 years ago

Vishnupk1993 commented 2 years ago

If you didn't see the video how to use Healenium, please, firstly, get it know on link https://healenium.io/

Describe the problem A clear and concise description of what the problem you've faced with

Screenshots If applicable, add screenshots to help explain your problem.

Please complete the following information:

  1. Versions of components (web and backend)
  2. Selenium version
  3. Platform (Java, .NET, etc)
  4. Full stacktrace with exception
  5. Logs from healenium-backend container
  6. WebDriver creation

Additional context Add any other context about the problem here. For example, using of additional frameworks like Sizzle library, Robot Framework or JDI, etc.

raghunadh10 commented 2 years ago

yeah @Vishnupk1993 . for me its opening fine . based on the logs, i think that mvn test command hadn't been used . Make sure you run the mvn test command to test the scripts .

Vishnupk1993 commented 2 years ago

Hi @raghunadh10 I tired the same , Mvn Clean ->MVNValidate -> MVN compile ->MVN test

raghunadh10 commented 2 years ago

@Vishnupk1993 i want to mention few things before running tests in maven . *1) Make sure your test class files are under src/test/ . 2) Make sure your test class file name ends with Test or Tests or TestCase . ( ex - healeniumTest.java ) 3)Make sure you have added the maven sure fire plugin in the pom.xml .** 4) The packaging attribute in pom file should be \<packaging> jar\</packaging> not \<packaging>pom\</packaging>. 5) The attribute scope should be like this \<scope> test \</scope> under the properties section in pom file .

hope these works . please check these before running and if still facing issue , please let me know

Alex-Reif commented 2 years ago

@raghunadh10, Yes, you're right, healenium tries to heal every time while element not found on a page. Kindly create new issue and provide all necessary info to help us to investigate the bug.

Alex-Reif commented 2 years ago

Hi @Vishnupk1993 , unfortunately no, there is no healenium plugin for Eclipse.

Vishnupk1993 commented 2 years ago

hi @raghunadh10 was it working for iframe? I saw one of your comment but now deleted. Please confirm and so that we can raise an new issue for the same.

raghunadh10 commented 2 years ago

Hi @Vishnupk1993 . it isnt working yet vishnu . so i removed here and created new issue for help regarding that . can you also please confirm whether its working for iframe . Also vishnu , i also have trouble running mvn test , when healenium dependency is added ,mvn test command is not picking up any tests , when that dependency is removed , the tests are running fine with mvn test command. do u still face the same issue ?

Vishnupk1993 commented 2 years ago

Hi @raghunadh10 Please let me know the defect raised for the same. It's not working for me also. For me other than the frames it's working perfect

raghunadh10 commented 2 years ago

Hi @Vishnupk1993 i have raised the defect for the mvn test command . Please check . if any inputs are also there from your side, please mention in the comments. https://github.com/healenium/healenium-web/issues/205

Vishnupk1993 commented 2 years ago

Thanks @Aliaksei-Ashukha @ElenaStepuro @raghunadh10 For all the guidance's, i have given an demonstration of healenium implemented with one of our automation script. And worked well.

But the question raised during the demo is that , is there anyway we can do the backed process with our normal sql . They are not accepting to use Postgress and Docker. So is there any idea for setting up the same through sql or any other ways ?

raghunadh10 commented 2 years ago

Hi @Vishnupk1993 . congrats on your demo. coming to your question, i am not sure about whether we can use sql or not . but we can use healenium without docker . i have implemented it in our part of project without docker only . installed every service on my local machine and tried. it worked well.

Alex-Reif commented 2 years ago

Hi @Vishnupk1993 , Could you contact with me directly and we can discuss about paid support and necessary adjustment .

image
raghunadh10 commented 2 years ago

Hi @Aliaksei-Ashukha @ElenaStepuro .I am from British Telecom organisation. After my demo of healenium on automation script to the team in my project .we are looking to integrate this healenium in our project completely.For this our team need info regarding the fix of salesforce error when running with healenium like ,is it a fixable issue or not ? . if you are okk to connect ,we can connect whenever it is feasible and discuss more regarding this issue and the paid support provided by you which you have mentioned earlier for vishnu.