List<WebElement> webElements = driver.findElements(By.tagName("a"));
What does this code indicates..?
Printable View
List<WebElement> webElements = driver.findElements(By.tagName("a"));
What does this code indicates..?
distribution_list_monitoring.xcvs
enterprise_activity_monitoring.xcvs
im_service_monitoring.xcvs
inbound_service_monitoring.xcvs
inbound_service_monitoring_using_ipniq.xcvs
line.xcvs
m3_monitoring.xcvs
outbound_feed_queue_monitoring.xcvs
outbound_service_dialing_performance.xcvs
outbound_service_monitoring.xcvs
outbound_table_monitoring.xcvs
performance_summary.xcvs
service_activity_monitoring.xcvs
service_activity_monitoring_by_disposition.xcvs
service_activity_monitoring_by_time.xcvs
workgroup_summary.xcvs
These are the list of web elements i have in the west panel of my web page.. how to click on the line.xcvs link using java code..?
<html lang="en" xmlns:sdk="" class=" x-viewport">
<head>
<body id="ext-gen3" class=" ext-gecko ext-gecko3 x-border-layout-ct">
<div id="north" class=" x-border-panel" style="font-family: Tahoma,Verdana,Arial,Helvetica,sans-serif; background-color: white; height: 32px; left: 0px; top: 0px; width: 1024px;">
<div id="ext-comp-1020" class=" x-panel x-border-panel" style="left: 0px; top: 309px; width: 1024px;">
<div id="west-panel" class=" x-panel x-border-panel" style="width: 200px; left: 5px; top: 32px;">
<div id="ext-gen69" class="x-panel-header x-unselectable" style="-moz-user-select: none;">
<div id="ext-gen73" class="x-tool x-tool-toggle x-tool-collapse-west"> </div>
<span id="ext-gen75" class="x-panel-header-text">Canvas Explorer</span>
</div>
<div id="ext-gen70" class="x-panel-bwrap">
<div id="ext-gen71" class="x-panel-body" style="overflow: auto; width: 198px; height: 218px;">
<div id="publicCanvasTreeId" class=" x-panel x-panel-noborder x-tree" style="width: auto;">
<div id="ext-gen101" class="x-panel-header x-panel-header-noborder x-unselectable x-accordion-hd" style="-moz-user-select: none; cursor: pointer;">
<div id="ext-gen165" class="x-tool x-tool-refresh"> </div>
<span class="x-panel-header-text">
<div id="ext-gen105" class="x-tool x-tool-toggle"> </div>
<img class="x-panel-inline-icon bPublicCanvasFolder" src="extjs/resources/images/default/s.gif">
<span id="ext-gen104" class="x-panel-header-text">Public Canvases</span>
</span>
</div>
<div id="ext-gen102" class="x-panel-bwrap">
<div id="ext-gen103" class="x-panel-body x-panel-body-noborder" style="width: auto; height: 98px; overflow: auto;">
<ul id="ext-gen166" class="x-tree-root-ct x-tree-lines">
<div class="x-tree-root-node">
<li class="x-tree-node">
<li class="x-tree-node">
<li class="x-tree-node">
<li class="x-tree-node">
<li class="x-tree-node">
<li class="x-tree-node">
<div id="ext-gen173" class="x-tree-node-el x-tree-node-leaf x-unselectable file" unselectable="on" ext:tree-node-id="51d5cc66-7d83-4164-a4d3-97087c6cfdc6">
<span class="x-tree-node-indent"></span>
<img class="x-tree-ec-icon x-tree-elbow" src="extjs/resources/images/default/s.gif">
<img class="x-tree-node-icon" unselectable="on" src="extjs/resources/images/default/s.gif">
<a class="x-tree-node-anchor" tabindex="1" href="" hidefocus="on">
<span unselectable="on">line</span>
</a>
</div>
<ul class="x-tree-node-ct" style="display:none;"></ul>
</li>
<li class="x-tree-node">
<li class="x-tree-node">
<li class="x-tree-node">
<li class="x-tree-node">
<li class="x-tree-node">
<li class="x-tree-node">
<li class="x-tree-node">
<li class="x-tree-node">
<li class="x-tree-node">
<li class="x-tree-node">
</div>
</ul>
</div>
</div>
</div>
From the above HTML code <div id="ext-gen173" this id is meant for the line.xcvs.. How to capture this value and click this...?
What do you mean by "click this"?
Indeed, what is all this?
What web page?
What "west panel"?
The .xcvs list which i have given in the above posts are the links on the web page.. i want to capture that control ids and click on it..
as in any web pages u can see that it will be divided into panels.. from the HTML file above the tree structure clearly indicates those .xcvs links are present in a panel named as west panel..
Click on them how?
Is this an applet you're trying to get to access these (I presume) links?
What?
No its not an applet. Its just a link which will open in the same window.. has some details about the data sources..
And where does Java come into this?
If Java is not the thing reading the response from the URL, and isn't an applet in the web page, where exactly is Java going to sit?
Using selenium to automate the controls in the web page.. lauching the web browser.. and finding the controls of each control in the web page is done in java only...
You don't think it might have been an idea to mention Selenium then?
I could have saved myself a load of time by ignoring the thread then...