Tagged Questions
0
votes
0answers
10 views
Where to find tutorials or documentation which will help to execute javascript using Selenium WebDriver?
Just for learning purpose, I'm trying to execute JavaScript through Selenium WebDriver and find it documented here
But there are only 2-3 examples of JavaScript codes.
Could someone point me to ...
0
votes
0answers
37 views
How to change value of element via JavaScript with Selenium webdriver .NET
I'm trying to test a popup page with chrome webdriver and selenium2 using .NET, but I'm having issues. I need to change the value of an element after it's window pops up. I need to chage the default ...
3
votes
4answers
174 views
scroll the a growing page to the bottom
I have a page. when I scroll it manually, it grows and then I can scroll it again and again until the scroll arrives to the bottom (a good example is a facebook timeline page).
I try to write:
...
5
votes
1answer
84 views
Getting AJAX content loaded when scrolled with Selenium Wedriver
I am using Selenium WebDriver to get the content of a site. (Note: the site has no API. Wish it did.) The site uses AJAX to dynamically load content when the user scrolls. To get that content, I've ...
2
votes
0answers
46 views
How to get ajax added contents on web page using selenium webdriver?
I have written a code to scrap some information from one of the website. For scrapping purpose i am using Selenium Webdriver. Now my problem is, there are some information present on one the page but ...
0
votes
2answers
44 views
parse HTML javascript to JAVA using selenium
I am trying to get the value of h1 as a string using selenium.
Here is the HTML javascript-
<script type="text/javascript">
$(window).load(function() {
var $windowHeight = ...
0
votes
0answers
25 views
How can i go on default browser after performing action on frame?
How i can go back on default browser after performing action on iframe. Using following code but not working
public void changeToDefaultFrameOrWindow()
{
driver.switchTo().defaultContent(); ...
0
votes
1answer
62 views
How do I load a javascript file into the DOM using selenium?
I'm using Selenium WebDriver to try to insert an external javascript file into the DOM, rather than type out the entire thing into executeScript.
It looks like it properly places the node into the ...
3
votes
2answers
91 views
How to combine css selectors
I use webdriver and often work with css selector and wondering if the amount of code I write to traverse each level can be decreased. Following is the javascript code to access an element and similar ...
0
votes
1answer
62 views
How to extracts a links under multiple Span tags using selenium webdriver
I need to count and display the number of links available under different Span Tags.
In the following HTML code, I have two anchor links under Span 'Upcoming Event' and 4 links under 'Recent Free LIVE ...
0
votes
0answers
75 views
Using selenium action builder to test Drag and Drop using CSS transforms
I've currently implemented a drag and drop solution which uses a CSS transform to move an object while it is being dragged instead of using native DnD (browser reasons) or changing x,y positions. I'm ...
0
votes
0answers
30 views
Selenium: how to execute user-extensions.js from java code
I want to test a smart GWT app using Selenium.
For this I need to add up
1. user-extensions.js
2. user-extensions-ide.js
in the IDE.
This gives an additional scLocators for locating GWT elements on ...
0
votes
0answers
41 views
InternetExplorerDriver hangs after click() is called on a button
I'm bound to using IE for a certain test and all goes well until I try to press a button, which generates a report.
WebElement btn=driver.findElement(....);//gets the button
btn.click(); // this does ...
0
votes
1answer
82 views
Using Selenium IDE's getEval command with FirefoxWebdriver
Hello,
I have a working Selenium IDE script that is working using this code:
getEval | ...
0
votes
1answer
52 views
Trigger event on text field with WebDriver execute script
I have a text field that appends values to the dom once a user hits enter. I am having some trouble simulating this with WebDriver since driver.send_keys(:return) will just submit the form instead.
...