I don't know how to put this class name in css selector because of the space. Could you help me please. Thank you!
'//div[#class="posting-card super-highlighted "]' <===
'div.posting-card super-highlighted' - doesn't work
'div."posting-card super-highlighted"' - neither
Always remember to replace space with . between the classes in css.
div.posting-card.super-highlighted
Related
abc
I am not able to locate above element. I tried //*[#id="contact-groups"], but with no success.
Well, XPath is not the best of the methods to find elements. But following will match the links with href = "#".
//a[#href="#"]
Not sure if your scenario is as simple as your question. I did test this with a simple html page.
The locator seems correct. You could try this too:
.//*[#id='contact-groups']
As per HTML code provided you can try below xpaths
//a[#id='contact-groups']
//a[contains(text(),'abc')]
//a[#href='#']
Thanks
I am guessing the link is in an Iframe.
Use the following code to switch to the frame and then click on the link
driver.switchTo().frame("frame-name");
driver.findElement(By.xpath("//a[#id='contact-groups']")).click();
Really thank you for pointing as he could not add themewas activated. I would like to ask your opinion if you know how I add a footnote to the style of this website:http://www.methaodos.org/revista-methaodos/index.php/methaodos
My question is, there are modules that you create thisfootnote? Or on the contrary they should be within thetemplate theme?
Thanks again beforehand.
I don't know, if I understand your question correctly. If you would like to add a footnote to your OJS, you can co to /index.php/ip/manager/setup/5. There is an option for this.
I have to insert an anchor tag within a success message. Magento strips out the html when the message is displayed.
Is there a workaround for this?
Any help would be much appreciated.
Flag Mage_Core_Block_Messages::$_escapeMessageFlag defines if to use htmlEscape() method with the message text, so you can set up your rule for the selected path.
Mage::app()->getLayout()->getBlock('messages')->setEscapeMessageFlag(false);
I am designing a single page website and want the fixed nav links to change colour whenever the user scrolls to the specified location. Seems pretty easy to do, I thought it was pretty easy to do, but I am having problems making it work.
I only downloaded the Scrollspy JS Plugin, as I am not using the Twitter Bootstrap CSS. I just require the Scrollspy Plugin.
Could you check this jsFiddle and provide some guidance? I have already checked out the documentation here, but I've had no luck. Any help is greatly appreciated :)
http://jsfiddle.net/xjTpk/28/
Ignoring the serious issues with your use of JSFiddle1, and the typographic errors2, the principle things wrong are
You need the .nav class on the <ul> in the navbar, and
The #welcome is not an existing element, causing a JS error.
Here's a fixed demo:
JSFiddle
Oh, and you don't need both data-api and js to initialize the plugin; choose one.
1 Loading Bootstrap 2.0.2 + 2.0.4 at the same time; trying to include a <body> in the html panel
2 Using upperCamelCase on a function that doesn't need it: scrollSpy();
Key thing you are missing is you have to have a "nav" class on the ul element (or some other parent element) as that is used in the scrollspy code as part of a selector.
I couldn't get yours to work for some reason but here is a simplified example:
http://jsfiddle.net/UWzeD/5/
Your ul needs a nav class, but most important for scrollspy to work properly is that your target needs to be one level about the ul. Otherwise I've found that scrollspy doesn't work.
When sifr is loaded, the images i have loading inline with the H3 tags are covered up: http://dearearth.net/eco_fabrics.html
I know this is a known issue. Any help? Thanks! (also, explain in detail when possible, please)
You mean you are replacing an <h3> which contains an image? That won't work.