Tagged Questions

0
votes
1answer
27 views

How to execute a Javascript function in python with selenium

I have a function called 'checkdata(code)' in javascript, which, as you can see, takes an argument called 'code' to run and returns a 15-char string. So, I found out (and tested) how to call ...
3
votes
2answers
89 views

Reading JavaScript variables using Selenium WebDriver

I'm using Selenium WebDriver (Java) and TestNG to do some testing on a website I created. In this website, I also have JavaScript and in some of the functions, it returns values and also outputs ...
0
votes
0answers
59 views

Disable alt key in IE9

I need to disable default alt+c behavior of IE 9. I am executing the java script code in Junit framework which is using Selenium Webdriver for browser launch. I am using following code ...
0
votes
0answers
62 views

Two different ways to override console.log, why one is not working in js.executeScript()?

I overwrite console.log function and put it into executeScript() which is method of selenium web driver. For example, I wrote: js.executeScript("console.log = function(txt) {alert(txt);};"); is not ...
0
votes
1answer
85 views

click not work on IE9 ruby webdriver

I'm using this code to click on an element: @driver.find_element(:id, "test").click and it works well when I run script on FF16 with Selenium Ruby Webdriver (selenium-webdriver-2.26.0.gem). However, ...
3
votes
1answer
60 views

Finding Ads on a web page

I'm writing an application that's trying to determine if there are ads on a page. This is currently using brower-driving through selenium webdriver using python. I figured that a good amount of ads ...
0
votes
0answers
496 views

Selenium Webdriver - Open new tab/window with javascript does not work in IE

I'm using JavascriptExecutor to open a new tab/window in Selenium Webdriver. The code I have currently works perfectly in Chrome but in IE 9 it does nothing. Edit: This runs without throwing any ...
-3
votes
4answers
73 views

How to verify a item is deleted on web page using selenium webdriver [closed]

I am deleting a row on webpage and i want to verify it is deleted. How to do it using selenium webdriver with java. I got its solution by using "isDisplayed" . Thanks
0
votes
0answers
13 views

Webdriver handles JAlert automatically

I am using webdriver 2.25.0 which handles the Jalerts automatically. I tried making the "handlesAlerts" to false in firefox driver capabilities. but, it doesn't work. My firefox version is 16.0. Can ...
1
vote
0answers
57 views

Selenium HtmlUnitDriver compiled javascript mode

I am using the HtmlUnitDriver in a play app (play.api.test.TestBrowser.webDriver is an instance of the HtmlUnitDriver) to test user interactions. I have a JavaSrcipt file that defines some functions ...
0
votes
1answer
294 views

Selenium for multiple browsers - Need webDriver that can execute javascript

I am helping to build an automation framework to test our website. Since the test cases must run against Chrome, Firefox and IE, we are currently passing around a WebDriver object for our driver. This ...
13
votes
3answers
1k views

Tracking with Java Script if Ajax request is going on in a webpage or Intercept XMLHttpRequest

I am using Selenium WebDriver for crawling a web site(only for example, I will be crawling other web sites too!) which has infinite scroll. Problem statement: Scroll down the infinite scroll page ...