Skip to main content

All Questions

0 votes
0 answers
62 views

Selenium throwing exception - org.openqa.selenium.JavascriptException - Failed to execute 'send' on 'XMLHttpRequest'

I am running a selenium on a site - https://ir.vishay.com/ I am trying to get the response from above url, the driver code is as simple as String url = "https://ir.vishay.com/" driver.get(...
Gunwant's user avatar
  • 979
0 votes
1 answer
100 views

Input Field value passed by using selenium disappears

An input field deletes the value after it's entered using SendKeys via JS in Selenium. The value appears briefly, then disappears. How to fix this? I am using Java with selenium & maven. ...
Mayur's user avatar
  • 1
0 votes
0 answers
27 views

org.openqa.selenium.TimeoutException: Expected condition failed: waiting for wattzhub.account.UpdatePage$$Lambda

I have a problem with selenium test using java, I want to upload a profile photo but I found errors. Everything works well at first, the photo is downloaded but it does not appear on the screen and ...
hidy's user avatar
  • 21
0 votes
2 answers
108 views

trying to get blob image from a url using selenium and java

I'm trying to download an image blob from a web page. Blob url looks like : blob:https://example.com/43bdcaf9-7d30-4b80-9306-7e411533b960 The image can be downloaded and converted to base64 text if I ...
Vineet Chaudhary's user avatar
0 votes
1 answer
114 views

Button click not working in seleniumheadless mode as expected

I am using selenium script to test login flow. After entering username, I need to click next button and it should redirect me to Identity provider page. If I don't run my selenium script in headless ...
Vivek Kumar's user avatar
1 vote
2 answers
46 views

How to use widgetVar in Javascript in Selenium in Java with PrimeFaces?

Javascript is working after setting the option: chromeOptions.addArguments("--enable-javascript"); But I am still looking on how to use widgetVar from PrimeFaces to get hold of a PrimeFaces ...
dragoness's user avatar
0 votes
2 answers
94 views

How to use Javascript in Selenium in Java

I found out that JavaScript is not working at all in my Selenium Tests in Java. I do not know why. Any suggestions? ((JavascriptExecutor) driver).executeScript("return arguments[0].innerText"...
dragoness's user avatar
0 votes
0 answers
35 views

How to implement a Javascript confirm dialog in Selenium JavascriptExecutor

Is it possible to return a value from a Javascript confirm dialog via Selenium JavascriptExecutor ? so the test code can determine if tester clicks OK or Cancel ? I tried this code: ChromeOptions ...
timmacp's user avatar
  • 193
0 votes
0 answers
46 views

How to interact with Openfin dock elements which are not present in DOM

How to interact with Openfin dock elements which are not present in DOM? I am not able to locate them in dev tools , I am using Selenium Java to develop test automation framework. I expect to interact ...
Javid Khalilov's user avatar
-2 votes
3 answers
371 views

Problem with executing javascript code to do hover event over xpath element in selenium webdriver

I try to trigger hover event over an element declared by xpath statement in selenium webdriver: ((JavascriptExecutor) driver).executeScript("$('(//span[@class='attribute-square-container'])[2]')....
fotrenc's user avatar
  • 80
0 votes
1 answer
29 views

How to capture JavaScript errors with Selenium4 and Junit5 using Java

How can I catch JS Eror messages using the automatic driver that comes with Selenium 4? And in order to use this in all my tests, should I define the test in @AfterEach? Or can everything be recorded ...
Kadir Ky's user avatar
0 votes
1 answer
43 views

highlight rows in SELENIDE

I am trying to do this: @Test public void tableTest() { getDriver().get(BASE_URL + "tabulka.php"); List<WebElement> rows = getDriver().findElements(By.xpath("//...
Michal Mariančik's user avatar
-1 votes
1 answer
74 views

Can't click button in selenium, but can click it in regular chrome tab

I am trying to build a software solution that adds emails to my job board's newsletter by automatically typing in an email and clicking "create alert". When using regular google chrome, I am ...
Alex Mcinteer's user avatar
0 votes
1 answer
93 views

org.openqa.selenium.JavascriptException: javascript error: window.testSpread.getActiveSheet is not a function

I'm trying to access the spreadjs canvas for one of my automation project with selenium java This is code snippet I'm using for the same URL: https://developer.mescius.com/spreadjs/demos/features/...
Amal M's user avatar
  • 16
-1 votes
1 answer
180 views

How to clear the text fields using the javascriptExecutor in selenium?

The following code isused to clear the text box value or we can use this to clear the text box in selenium if the clear() function is not working use below code ` if (maturityDate.compareTo(...
praveen Geetha's user avatar

15 30 50 per page
1
2 3 4 5
99