Skip to main content

All Questions

14votes
6answers
25kviews

How do I set a timezone in Selenium Chromedriver?

I can't figure out how to set a timezone when using Chromedriver. Is there some ChromeOptions argument or something? The issue is that when I go to some sites (for example, https://whoer.net), it ...
Helen's user avatar
5votes
1answer
22kviews

chromedriver clear cache - java

How can I clear the cache of a new instance of a chromedriver in java? I am trying this but im not too sure what else to do? Would it be possible to create a javascript hack to clear the cache in JS ...
Ben's user avatar
  • 399
4votes
2answers
3kviews

How can I execute JS command using my chromedriver, inside a Java code?

I would like to ask you how can I scroll into a web page by using a JS command. Though, I want this JS command inside a Java code-block. For the above purpose let me tell you that I also use Selenium ...
mukesh.maki's user avatar
3votes
2answers
2kviews

Not able to close tab in chrome browser using JavaScript

I'm not able to close tab in chrome browser using JavaScript last line in below code js.executeScript("window.close()"); is not working. Can any one please help on the issue? package TestCode; ...
Akash Chavan's user avatar
2votes
1answer
1kviews

Required to capture the Performance monitor details from Chrome Dev tools into Java program

I am running a selenium test written java. As part of the test i am trying to capture/retrieve the current 'CPU Usage' and 'JS heap size' of the browser and print it in console. Is there a way to ...
kannan's user avatar
2votes
0answers
40views

How to handle modal bootstrap popup in Selenium2

I was trying to handle modal popup but unable to handle, so that unable to perform any action on the page. i have tried following below code: public static void main(String args[]) throws ...
surbhi gupta's user avatar
1vote
1answer
1kviews

Headless Chrome and document.location.href change

I am trying to automate a search flow on a page, which requieres you to login to access the search form. I am using chromedriver with java with the configs below: ChromeOptions chromeOptions = ...
denizdurmus's user avatar
1vote
0answers
102views

Selenium java how to get JS file sizes from Network tab after login

I am fairly new to Selenium so please bear with me. I have a requirement to check two JS file sizes upon login of an application (Open chrome browser -> Open Url -> Click in username and input ...
wheelerlc64's user avatar
1vote
0answers
977views

Selenium can't fire onchange on Select Dropdown

It's the first time I come across an issue with Select that Selnium webdriver couldn't fire the onchange on it. The code is as usual: Select country = new Select(driver().findElement(By.id("...
Ragnarsson's user avatar
1vote
1answer
479views

how to get an image's tooltip, which will only appear when we mouseover it. In Selenium

I am learning Selenium, and i want to get the tooltip of the image printed on the selenium console,...the tooltip will only appear when we mouse over the image.. I tried to get the xpath and used ...
JeyanthiRanjit's user avatar
1vote
1answer
69views

Elements wont function in Chrome binary driver on a specific page

A specific page in the site I am testing have few buttons that wont register any clicks via selenium Webdriver or manual clicks while opened with chrome binary driver. It works fine while I manually ...
Azfar's user avatar
1vote
0answers
31views

Download and add Chromebinary in environment variables

Background - I am moving from Nightwatchjs to Cucumber-jvm. In Nightwatchjs project, I was able to install and run automation test cases on latest Chrome binary. It was handled programmatically with ...
paul's user avatar
  • 4,517
1vote
2answers
65views

Checking boxes with selenium chromedriver

I'm working on selecting checkboxes on a page from an Array list of strings. For example my array contains [wva-00:04:F3:12:A7:2E, wva-00:04:F3:12:A6:F7, wva-00:04:F3:12:A6:90] I've tested the ...
DanR's user avatar
1vote
3answers
717views

How to Select the last 'li' which is changing dynamically for each run in the 'Ul' Using selenium driver

<ul class="drillDownMenu l_drillDown" style="left: -498px;"> <li class="hasSubs"> <a id="RAL10" href="javascript:;"> <ul class="active"> <li class="hasSubs"> <li class=...
balu mahesh's user avatar
1vote
1answer
208views

Need suggestion to code for filter icon

I need to code in selenium web drive java for the below code. I am using java eclipse. I am trying to find the element for the Filter menu. Once I click the filter icon filter menu will be displayed. ...
irshad mohammed khan's user avatar

153050per page
close