Selenium chrome driver throws password field not intractable error - selenium

I am using selenium chrome driver nugget package with . Net core for browser automation. I am facing an issue whenever I try to set text inside password field. I tried to implement most of the suggestions on stackoverflow and other sites but nothing seems working. I tied to use wait.until elements is visible and wait.until elements is clickable and tried sleeping the current thread for considerable time but none of the solution is working.
I am not getting this error while debugging it. Please help if you have solution around it.

Related

Selenium code for Redirect page is not working after copying working code on different test suite

Problem Statement:
Selenium code for Redirect page is not working after copying working code on different test suite.
This is part of Selenium Automation code using Karate Web services testing.
Not able to detect web element using XPath on an HTML page.
Analysis:
When tried inspecting web element with same xpath, it's getting detected but while running through Automation script it fails to detect same web element.
Resolution:
I tried introducing Explicit Wait, still having same issue.
Request: Please help to resolve this issue, Thanks in Advance.

Clicking the Element in selenium in local browser where else in browser stack it shows "Stale element error"?

Running Selenium Test. And While running all the test cases execute without any error while running from my eclipse ide in chrome browser.But while i run the script in browser stack elements are not clicked by selenium and it throws stale element error. What am i doing wrong ??
Regarding Stale Element Exception -
Stale element exception can be caused because of the following reason -
The element is detached from the document object model (DOM)
The element is deleted or removed
Read about this exception here
You may review the logs to determine if there was a page change or DOM change that could have triggered the exception. Did you try contacting the BrowserStack support team?
Usually we get this Exception when the element get's updated or changed and you are trying to access it at the time. From your question I can see that it's working on your local machine, so just make sure the browser version and the third party driver's you use are up to date. Also check the driver files path(chromedriver.exe etc) is correctly pointed in the Browser stack

should i able to load entire html page using htmlUnitDriver

I am using Chrome driver for my Selenium test case. It is working fine. There is a performance issue in my project, so I want to migrate the testcase from ChromeDriver to HtmlUnitDriver. When I am trying to use HtmlUnitDriver in my testcase, by just changing the driver name with HtmlUnitDriver, the selenium testcase is not working.
After working around with this driver, I thought that HtmlUnitDriver is not loading the entire page.
Why I am telling this is because HtmlUnitDriver can find some div id's which are in the beginning of the page.
Other divs were not found by this driver. I am getting NoSuchElementException for this div id's.
So please help me to resolve this problem in my project.
Aren't the elements you are looking for created by JavaScript/AJAX calls? You might need to enable JavaScript support in HtmlUnitDriver first.
But beware, it could work well, but it could behave differently from what you see in the real browsers.
Otherwise, are you using Implicit/Explicit Waits for your searches? Even with JS enabled, sometimes it takes a while before all asynchronous requests are handled.

handling showModalDialog window in selenium

I am using Selenium- JAVA to automate my application. In my application, when we click on a particular button, it actually opening a window using showModalDialog command. When we open a window using showModalDialog the java-script execution gets suspended till the window gets closed.
Problem No :1
in Internet Explorer(7,8,9), i am getting permission denied error upon clicking. I also tried executing javascript. For this also i got permission denied error. Any idea about this issue?
Problem No:2
In Firefox, i executed the same script and it is working fine. But the problem here is execution is suspended and it will not execute the other commands till the model window gets closed.:( How to solve this issue?
You will have to do modifications in selenium browser bot js-IEBrowserBot.prototype.modifyWindowToRecordPopUpDialogs to handle the modal window-this will help Try this. Or try using webdriver.
Can you post the application HTML you are getting this error on?

Does ExceptionHub break Selenium's wait_for_page_to_load command

I just added ExceptionHub (a javascript error tracking service) to our website, but all my selenium tests are failing now. When I look at the selenium output, it says it timed out in waitForPageToLoad command. If I run the test locally, I see that the page loads up fine, so I'm not really sure why selenium keeps waiting. Has anyone else managed to get ExceptionHub working with selenium?
I've seen similar problems with UserVoice. Often the rest of the page is loaded but still waiting for UserVoice and the test will time out.
It might help if you don't start loading ExceptionHub until the rest of the page is loaded. Of course that would mean you can't catch any javascript errors during page load...