Selenium webdriver throws Internal server error - selenium

In a web application, the browser launched from selenium webdriver throws internal server error.
Manually opening the same web application works fine.
I tried to delete the cookie in the browser launched from driver when I got error and once cookie is cleared and refreshed, I am able to get the application.
I have tried driver.manage().deleteAllCookies() which dint work.
Any suggestions for me please?

Related

My test site is not launching from Playwright automation when the browser is set to Desktop Chrome

I am trying to launch a website from Playwright, the browser is set to desktop chrome. But I am getting an error message saying the website is not reachable. I can able to launch the website manually and when I try to launch the site on other browsers like safari, Firefox or iPhone it is launching successfully from Playwright. Has anyone experienced similar issue. I have been trying solution for long time but I couldn't find anything useful. Kindly help me on this.
Thanks in advance!!
I am expecting the site to launch successfully from the Playwright using Desktop Chrome browser. Sometime the site is launching successfully but when I try to perform any actions the site is again unreachable

Selenium test on jenkins linux slave failed as Expected enabled element was not enabled

I need a help on identifying a selenium testing issue on jenkins slave.Initially the chrome browser was not launched and we found the chrome driver version is not matching with chrome browser version. After we fixed that now we are getting error as Expected enabled element was not enabled
From Jenkins Console Log
But we are able to load the payload html page and able to see the element as like below
From HTML File
From browser
Same code is working fine in other jenkins servers. So why it is stating as the element is not visible even though we are able to see in payload html? Is there any additional settings we have to do from jenkins slave?
Could you please guide me.

Selenium: Getting 404 error with ChomeDriver browser but not Chrome

I have a weird problem going on with a Selenium test. I have an internal company website that I'm writing a Selenium test for and am getting a 404 error ONLY with the browser instance that Selenium opens up. It doesn't matter if its Chrome or Firefox, I still get the 404.
To prove its only with the browser instance that Selenium opens I have run my test in debug mode, paused it when the browser launches and then manually executed the test case within that browser instance and I always get a 404.
Now, if I open a normal Chrome or Firefox browser instance outside of Selenium I can manually execute the test case just fine.
Manual execution of the test case in Chrome Incognito also works.
What am I missing here?
Apparently something else needs to be loaded with in the browser but I have no idea what. Any help would be greatly appreciated.
I found that we had a redirect problem on our server, however it still doesn't make sense as to why it failed in WebDriver but not in a normal browser. Either way, its resolved.

selenium issue while using InternetExplorerDriver

i am using selenium 1.0.2 for my automation test cases, when i try to execute it from ie browser ,its launching , but its failing when hits driver. findelements or even waituntil saying
The HTTP request to the remote WebDriver server for URL http://localhost:39208/session/61215720-0870-47fa-a50b-ac97fb8b7bbc/window_handles timed out,
but same test case is passing in chrome. also have found the in ie it passes if i use the url - http://omnichannelint.blob.core.windows.net/convcontrol-daily/HTML/AgentWidgetWithMock.htm , failes when i use file:////C:/WebResources/HTML/AgentWidgetWithMock.htm have tryed same in localhost:8080 then also it fails, please any one help me fix this issue

Selenium 2.53 is not throwing exception when browser is not invoked using driver.get() & driver. Navigate.To()

I used selenium 2.53.1 and tried invoking browser but browser throws Windows authentication pop up. Once Windows authentication pop up comes driver.get() will throw exception in selenium 2.42 but the same scenario is not working in 2.53. Driver is not throwing any exception and stays idle for long time in 2.53
Browser used firefox.
Eg: url
driver. Get("https://www.engprod-character.net/");
Windows Authentication pop up window occur expection requires user credentials.
In selenium 2.42 : as driver is unable to invoke browser it throws exception, so that i catch that exception and handle the authentication pop up by using robot fw code.
Browser : firefox 29
In selenium 2.53: driver is not throwing any exception. So i couldn't able to handle it.
Browser : Firefox 46
Why selenium 2.53 is not throwing exception. Do we have any alternate other than using autoIT.
Please check that you set system property ("webdriver.gecko.driver"). Otherwise Firefox could be opened without any further action.
I can't open your link https://www.engprod-character.net/ please check it too.
I don't know autoit. I only can say that Selenium is a web testig-framework working for
Java
C#
Ruby
Javascript
Python
Perl
Hope this helps?
EDIT: And I recommend to handle a popup in another way. I don't know the source code of your test object but if it's a java popup Selenium can't read it.
In this case, use
driver.switchTo().alert().sendKeys("<username>");
action.sendKeys(Keys.TAB);
and in the same way send Password and ENTER.
Another way is to overcome the authentication by adding credentials to UR, described in HTTP Basic Authentication credentials passed in URL and encryption
Good Luck!
driver.get() throws exception when Windows pageload timeout is expired it throws exception then we can catch tge exception and execute the robot class code to hansle Windows authentication pop up