xpath


Unable to capture XPath of dynamic element - Selenium - C#(Visual Studio)


There is a Text box where in data is entered. On entering a drop down list pops out(kind of auto extender), with few options matching the entered text. I need to select one value form the list. But I am unable to capture the XPath, when I try to fetch the XPath, the list auto closes. How to capture such element?
HTML code for List:
<div id="citydiv" style="height: 120px; overflow: auto; position: absolute; width: 129px; visibility: hidden; left: 370px; top: 542px; z-index: 1000; display: none;" class="AutoExtender"></div>

Related Links

Xpath: How to find the parent of all descendants of the node matching the specified xpath condition?
Importxml multiple xpath prevent splitting multiple columns (Google Sheets)
Robotium clickOnWebElement by xpath
Getting Cell Contents Via XPath for ImportXML()
Inserting a query variable as an attribute in XQuery
How to retrieve value from cxf RAW message using xpath
XPath Find any element with text() within node selection
How to get concatenated child text nodes in lxml
XPATH extract text within <br>
Xpath - Exclude elements within TD
How to identify dynamically generated image id's in a table row by using nightwatch JS
How to select a row in a table and select a specific radio button next to it
How to get the correct XPath for =ImportXML
mouse pointer to a position up in selenium
XPath with multiple child node conditions
concatenate a string/character n number of times in xpath

Categories

HOME
android-espresso
memory
generics
ontouchlistener
paypal-ipn
filesize
openlayers-3
malware
qooxdoo
azure-mobile-services
capistrano
lda
yeoman-generator-angular
erd
circleci
createjs
dma
texas-instruments
google-tasks-api
robolectric
office-ui-fabric
varnish-vcl
adminlte
amazon-mws
opam
angular2-highcharts
unordered-multimap
introspection
uri
marquee
tortoisehg
adapter
sfml
openbr
python-2.x
winrm
markov-chains
gnu-classpath
bluemixtools
jade4j
django-smart-selects
sspi
assert
grunt-contrib-watch
flipkart
coverage.py
spooler
virtual-memory
latexml
oracle-bmcs
webalizer
tinyioc
ol3-google-maps
datediff
wikimapia
dtd
wildfly-9
okio
odp.net-managed
django-redis
gulp-uglify
android-expansion-files
cortana
lovefield
largenumber
canopy
wlanapi
angular-amd
com0com
web-api
camus
thoughtworks-go
datagridcomboboxcolumn
utf8-decode
fileshare
tabletools
nosql-aggregation
cloo
application-server
mute
notifyjs
quickgraph
ember-table
chartfx
days
proc-open
gitx
getproperty
arrow
chronometer
border-box
image-formats
system-information
pcspim
firebird1.5
glassfish-esb
startupscript
kernel32
rtd
servlet-container
eaccelerator
3-tier
cleartype
resharper-5.0
oracle-pro-c
powergui
html-generation
rootkit

Resources

Encrypt Message