English 中文(简体)
缩略语
原标题:Selenium IDE - Scroll in div?
<div id="aaa"> [lots of text] SHOW ME</div>

#aaa {
 width: 100px;
 height: 100px;
 overflow: scroll;
}

http://jsfiddle.net/3EgypttJ/

is possible make scrool to DOWN and show me text "SHOW ME" ? i cant record this in SELENIUM IDE, but maybe this is possible?

问题回答

use runScript to run the following snippet

document.getElementById( aaa ).scrollTop = document.getElementById( aaa ).scrollHeight;

作为“奇姆”提供的答案的一个变量(比克),它把我放在了这个轨道上,并解决了我的特殊需要!)在这里,我需要找到一个DIV要素,其途径是使用电线器,并横向加以发展:

var select=document.querySelector("div#MyOuterDivId div.datagrid-view2 div.datagrid-body");select.scrollLeft=100;




相关问题
run unit tests and coverage in certain python structure

I have some funny noob problem. I try to run unit tests from commandline: H:PROpyEstimator>python src estpython est_power_estimator.py Traceback (most recent call last): File "src est...

How to unit-test an enterprise symfony project?

I´m working on a huge project at my work. We have about 200 database tables, accordingly a huge number of Models, Actions and so on. How should I begin to write tests for this? My biggest problem ...

Code Coverage Tools & Visual Studio 2008 Pro

Just wondering what people are using for code coverage tools when using MS Visual Studio 2008 Pro. We are using the built-in MS test project and unit testing tool (the one that come pre-installed ...

Unit testing. File structure

I have a C++ legacy codebase with 10-15 applications, all sharing several components. While setting up unittests for both shared components and for applications themselves, I was wondering if there ...

Unit Testing .NET 3.5 projects using MStest in VS2010

There s a bug/feature in Visual Studio 2010 where you can t create a unit test project with the 2.0 CLR. https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=483891&wa=...

Unit Test for Exceptions Message

Is there a simple (Attribute-driven) way to have the following test fail on the message of the exception. [TestMethod()] [ExpectedException(typeof(ArgumentException))] public void ExceptionTestTest() ...

热门标签