How to get value from ::before locator | Selenium Forum
M
Posted on 23/08/2016
Hi,

I want to get the color of the bullet
in HTML page
<div class="bullet-aligned" align="center"/>

but when i go through inspect element
<div class="bullet-aligned" align="center"/>
::before

M
Replied on 23/08/2016

you can try getattribute method.
https://www.seleniumeasy.com/selenium-tutorials/how-to-get-attribute-values-using-webdriver


M
Replied on 23/08/2016

which value should i find attribute of ?

::before?


M
Replied on 24/08/2016

[quote:2yu1l1ns]::before?[/quote:2yu1l1ns]

i haven't seen this before. send screen shot of firebug and ::Before.


M
Replied on 24/08/2016

i am trying to get the color of the bullet

Responsive image

M
Replied on 24/08/2016

you can get color through this

http://stackoverflow.com/questions/23220575/how-to-get-element-color-with-selenium


M
Replied on 24/08/2016

I have a code for getting the color.. which works fine.. but i am unable to locate the bullet element


M
Replied on 24/08/2016

hmm. . .

can i have access to the website?


M
Replied on 24/08/2016

no sorry.. vpn is required Responsive image


M
Replied on 24/08/2016

can you come on skype?


M
Replied on 24/08/2016

Not possible at this moment .. but i found that its realted to css pseudo element ... will give a try..Thanks for trying

http://www.w3schools.com/css/css_pseudo_elements.asp