I need to find an XPath for the below screenshot. Please help to write an XPath for the highlighted box.
I have tried
//span[contains(text(),'What's Up')]
and also
//span[#class='fontSize16' and contains(text(),'What's Up')]
P.S.: When I'm trying using to the XPath generated from firepath, i.e.
.//*[#id='appContent']/div/div[1]/div/div[1]/div[1],
I'm getting below error(refer image2):
Error :
FAILED: login
org.openqa.selenium.WebDriverException: unknown error: Element ... is not clickable at point (627, 118). Other element would receive the click:
(Session info: chrome=65.0.3325.181)
Related
when i tried to edit manually added unordered list getting this error in console "The specified element mode is not supported on element: "ul"
ckeditor version is 4.10.1
This one is bugging me. The same xpath is waited for and found. Then i attempt to click it and get an error. Code as below
Wait Until Element Is visible xpath=//*[#id="content"]/div[1]/div/div/div[2]/div[1]/div/h3/a/i[1]
Click Link xpath=//*[#id="content"]/div[1]/div/div/div[2]/div[1]/div/h3/a/i[1]
Error here
ValueError: Element locator 'xpath=//*[#id="content"]/div[1]/div/div/div[2]/div[1]/div/h3/a/i[1]' did not match any elements.
I know for sure by going in manually that the xpath is there. Something funny about the way Robot does this perhaps?
Click link will actually look for a link attribute (a=) but your locator is not an 'a' attribute.
Try 'Click Element' instead of 'Click Link'
I am having below error message in my console while trying to click on a button element:
unknown error: Element is not clickable at point (62, 459).
Other element would receive the click: <i class="foo foo-chase-lemon font-size-13"></i>
Here's my code below:
#object = Page.new
#object.wait_until_btn_element_visible
#object.btn_element.click
I have tried with retry 5 times to click on it using rescue but didn't help.
Below code also didn't work where i tried to move to that element before click.
Capybara.page.driver.move_to.(#object.btn_element).perform
Any solution will be greatly appreciated.
I tried increasing the resolution/ scrolling the window. None of them worked on this specific scenario. These solution might work for others.
However, I resolved the issue by clicking the button using javascript "execute_script" method in my automation script.
Unable to locate a button with :id=>"bld" on my page. Looked at many solutions and even tried to generalize it to element vs button:
browser = Watir::IE.new
browser.element(:id=>"bld").click
err > unable to locate element, using {:id=>'bld'}
Any suggestions?
Try looking inside an iFrame
browser.iframe(:id=>'some_id').element(:id=>'bld');
I have a button, onclick of which I'm doing an AJAX call to one of my pages (which contains jqplot elements).
Now, the AJAX req/res works fine for the first click of the button.
When I click my button for the second time, I get an exception saying,
Uncaught Error: can't load XRegExp twice in the same frame
And it points to the jQuery-min file. Any idea on how I can solve this issue?
I have tried this solution and it does not work.
I think the handler is getting "attached" before the DOM element in question actually exists.
Try using jquery.on().