# after this step i need to get the title tag and check if the value contains React App but not sure how to acheive this as i can't read any elements on the subframe to perform other steps
driver.switch_to_frame('SubFrame')
driver.switch_to.frame(driver.find_element_by_name(name))
to get back to the main window do:
driver.switch_to.default_content()
Hope that helps.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/8de589ad-48ad-4a0c-b08c-3276e25ba379%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/ac349c4c-dc0b-460f-bb89-187ab6539457%40googlegroups.com.
Just be sure to replace "text here" with the text you're looking for (I'm on mobile and it's not letting me see your original post while I type a reply).
One thing to try is the xpath without the . before the slashes.
It also couldn't hurt to test the XPath in your browser dev tools. If you're using Chrome or Firefox in windows, f12 will open the dev tools window. Select the html tab, then ctrl-f and paste in your xpath. If it's correct, it will find your title element. (that last paragraph is all from memory, so apologies if I missed any details).
--
You received this message because you are subscribed to a topic in the Google Groups "Selenium Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/selenium-users/TTnYyJ6ijLE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/7bbf0f46-71fc-4d10-8387-3d05f8929a75%40googlegroups.com.
Looks like when i put this "/html/head/title[1]" i am able to read the subframe but how to get the value in the title tag.I said gettitle but it says it has no attributedriver.find_element(By.XPATH, "/html/head/title[1]")driver.gettitle()E AttributeError: 'WebDriver' object has no attribute 'gettitle'test_BulkParameterUI.py:77: AttributeError
On Sun, Mar 18, 2018 at 6:19 PM, Travis <travis...@gmail.com> wrote:
OK, your xpath is valid now. NoSuchElementException means selenium can't find the element, either because it doesn't exist, or because of some other issue (if you're in the wrong iframe, for example).
One thing to try is the xpath without the . before the slashes.
It also couldn't hurt to test the XPath in your browser dev tools. If you're using Chrome or Firefox in windows, f12 will open the dev tools window. Select the html tab, then ctrl-f and paste in your xpath. If it's correct, it will find your title element. (that last paragraph is all from memory, so apologies if I missed any details).
--
You received this message because you are subscribed to a topic in the Google Groups "Selenium Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/selenium-users/TTnYyJ6ijLE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.