-
Notifications
You must be signed in to change notification settings - Fork 40
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
Getting error "javascript error: Cannot read properties of undefined (reading 'toLowerCase')" #155
Comments
Getting error during execution at the below line , Error |
Hello @Vishnupk1993 ! |
Hello @Vishnupk1993 ! |
Hi @ElenaStepuro ! Tried the same. I have changed the version to 3.141.59 version, added another container. But still we are getting the same error. |
Hello @Vishnupk1993 ! |
In addition, @Vishnupk1993 , please, send full stacktrace of problem and pom.xml to check your dependencies. |
Hi @ElenaStepuro ! Note : - We tried the same in Salesforce community edition. |
Hi @Vishnupk1993 ! I use chromedriver 95.0.4638.69 and your version is ChromeDriver 94.0.4606.61. Try to increase chromedriver version. |
Hi @ElenaStepuro ! |
Hi @Vishnupk1993 ! |
Greetings ! Can you please help me to understand how the elements are getting stored in docker ? and can we view the stored web elements through docker ?. |
Hello @Vishnupk1993 |
Thanks for the update @ElenaStepuro , we tried in salesforce lightning and only the login part is getting healed. But we are not getting the report , is there any other dependency or do we need to add any extra line code to get the same ? the above attached are the yml and ppty file which we are using now. |
Hello @Vishnupk1993 For generating report the next points should be completed:
Then you'll see link for generated report like here In addition, you can see the video about plugin's setup and run: https://www.youtube.com/watch?v=hwSK5ngqOgQ&ab_channel=HealeniumCommunity |
We tried all the mentioned setups , we also referred few issuw #170. But the report is generating like the below and also getting the below mentioned issues while running the script *** Element info: {Using=xpath, value=//a[@id='forgot_password_link']} |
@Vishnupk1993 in previous comment forgot to say about other properties...
|
@ElenaStepuro till now the same issue is getting repeated. Since it's my official code i cannot have a session with you too :( . Can you share me the latest updated yml , helaenium ppty files ? |
i'm trying by adding break point's to check if the code is working or not. Please find the below step which i did during execution Used intellij
Previously this was working fine for me then i updated the pom and yml i guess |
Hello @Vishnupk1993 As about your steps, you don't need to update login xpath in code. It should be changed in DOM om page |
I tried the same in my Personal Laptop and the salesforce script which i have written is working fine, but the report is not generating. If possible can we have a connect to resolve the same ? Similarly we are also facing some issue with healing driver in some script's too. |
Hello @Vishnupk1993 , yes, if you need we can have a call. Please, send me by e-mail [email protected] available time slots for you on the next week. |
Hi @ElenaStepuro , |
@ElenaStepuro We are waiting in the lobby for the clarification. |
@Vishnupk1993 I'm also in the lobby) |
i thing you joined in the other lobby. |
Hi @ElenaStepuro greetings, any further update on that issue ? |
Hi @Vishnupk1993 , sorry for long answer. Unfortunately, for now there are no updates from my side. I will come back to you with updates till the end of this week. |
Hi
HI @Vishnupk1993 . I have encountered a smiliar issue which is "javascript error: Cannot read properties of undefined (reading 'toLowerCase')" . i have been using the correct versions of healenium web , backend and chrome. Healenium is working on other scenarios but not on this particular scenario where it is trying to find the web element . instead of finding it , it is throwing this error. Also when the disbale healing mode is on , it is running fine . can you please check out this problem and help me . |
Hi @raghunadh10 unfortunately, for now Healenium doesn't support Js executor. We work on this issue. |
Hi @raghunadh10 , @Vishnupk1993 , Issue was fixed in hlm-web version 3.3.0 |
@Aliaksei-Ashukha Thanks for the resolution. Can you please share the latest yaml file ? |
@Vishnupk1993 , Yaml file remain the same. You need to update hlm-web dependency |
HI @Aliaksei-Ashukha While running the script i met with this below error, can you please provide a resolution for this ? |
Hi @Aliaksei-Ashukha . thanks for the update . i have one doubt regarding database we are using in healenium . can we have the ability to change the constraints on columns like (example -- adding unique constraint to locator column) . will this create any issues ? please help me on this thing . if any extra details needed, please intimate me . |
Hi @raghunadh10, |
hi @Aliaksei-Ashukha . In the db , locator column getting stored with duplicate values too , i want to avoid it . so i am thinking to add a unique constraint on it . so on adding it, will it cause any unreasonable behavior by healenium. |
Hi @Aliaksei-Ashukha tried the same thing and works as expected to me. Thanks for this fix. Quickly, can we set up healenium with eclipse? Because we use our own framework that will support the eclipse rather than intellij. |
@raghunadh10 , Selector table also have URL, CLASS_NAME, METHOD_NAME. These values used for identify unique of locator. In case you have duplicate locator value, so URL, CLASS_NAME, METHOD_NAME should have other other value. (For example locator By.id("button"); can used on different pages.) |
@Vishnupk1993 , Healenium does not depend on the IDE. You can use eclipse as well. |
@Aliaksei-Ashukha , yeah right . i just saw it . thank you so much for the explanation . one last thing ashukha , so no matter how many times locator get stored or method_name got stored, healenium heals the webelement when its xpath got changed without any trouble right . the reason im asking this is for some web elements its unable to heal . its usually saying new element locator not found . may be im doing any mistake . can you please give some tips to make the best use of this healing ? thanks for your time again |
Thanks for the update @Aliaksei-Ashukha , is there any plugin available for eclipse ? Like the Healenium plugin we used for intellij ? |
Hi @Aliaksei-Ashukha I tried running the script through maven and for me the browser is not getting opened im getting these exceptions, can you please help me to debug this ? @raghunadh10 is chrome opening for you through maven ? |
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 . |
Hi @raghunadh10 I tired the same , Mvn Clean ->MVNValidate -> MVN compile ->MVN test |
This comment was marked as outdated.
This comment was marked as outdated.
@raghunadh10, Yes, you're right, healenium tries to heal every time while element not found on a page. |
Hi @Vishnupk1993 , unfortunately no, there is no healenium plugin for Eclipse. |
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. |
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 ? |
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 |
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. |
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 ? |
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. |
Hi @Vishnupk1993 , Could you contact with me directly and we can discuss about paid support and necessary adjustment . |
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. |
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:
Additional context
Add any other context about the problem here. For example, using of additional frameworks like Sizzle library, Robot Framework or JDI, etc.
The text was updated successfully, but these errors were encountered: