<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Techy Things &#187; selenium</title>
	<atom:link href="https://tech.yipp.ca/category/selenium/feed/" rel="self" type="application/rss+xml" />
	<link>https://tech.yipp.ca</link>
	<description>Just another Yipp.ca Blogs site</description>
	<lastBuildDate>Thu, 01 May 2025 18:06:28 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.2.38</generator>
	<item>
		<title>Backbone element.click() event not working in Selenium python</title>
		<link>https://tech.yipp.ca/selenium/backbone-element-click-event-working-selenium-python/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=backbone-element-click-event-working-selenium-python</link>
		<comments>https://tech.yipp.ca/selenium/backbone-element-click-event-working-selenium-python/#comments</comments>
		<pubDate>Fri, 15 Jan 2016 03:18:10 +0000</pubDate>
		<dc:creator><![CDATA[frank]]></dc:creator>
				<category><![CDATA[selenium]]></category>

		<guid isPermaLink="false">http://tech.yipp.ca/?p=2193</guid>
		<description><![CDATA[<p>It is sometime rather frustrating when working with Selenium and WebDriver that your element is found but the click() action doesn't fire the event behind it! Before you give up try seeing the suggestion&#46;&#46;&#46;</p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/selenium/backbone-element-click-event-working-selenium-python/">Backbone element.click() event not working in Selenium python</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>It is sometime rather frustrating when working with Selenium and WebDriver that your element is found but the click() action doesn't fire the event behind it!</p>
<p>Before you give up try seeing the suggestion from Selenium IDE. Sometime just a seemingly innocuous change will make it work. Like this example I resolved today:</p>
<p>FAILED:<br />
driver.find_element_by_css_selector(".modal-footer button.btn-primary.btn").click()</p>
<p>WORKS:<br />
driver.find_element_by_css_selector(".modal-footer > button.btn-primary.btn").click()</p>
<p>Both returned True on is_element_present but the first one did not fire event when clicked with click().</p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/selenium/backbone-element-click-event-working-selenium-python/">Backbone element.click() event not working in Selenium python</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://tech.yipp.ca/selenium/backbone-element-click-event-working-selenium-python/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NameError: global name &#039;By&#039; is not defined</title>
		<link>https://tech.yipp.ca/selenium/nameerror-global-name-by-defined/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=nameerror-global-name-by-defined</link>
		<comments>https://tech.yipp.ca/selenium/nameerror-global-name-by-defined/#comments</comments>
		<pubDate>Thu, 14 Jan 2016 00:11:50 +0000</pubDate>
		<dc:creator><![CDATA[frank]]></dc:creator>
				<category><![CDATA[selenium]]></category>

		<guid isPermaLink="false">http://tech.yipp.ca/?p=2185</guid>
		<description><![CDATA[<p>Problem: Traceback (most recent call last): File "seleniumPhantomJS.py", line 153, in selenium_phantom_web_direct_rtp_create_test("10.65.11.145") File "seleniumPhantomJS.py", line 118, in selenium_phantom_web_direct_rtp_create_test isPresent = is_element_present(driver, By.CSS_SELECTOR, "article.notifier-log") NameError: global name 'By' is not defined [flemieux@atom makito]$ NameError: global&#46;&#46;&#46;</p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/selenium/nameerror-global-name-by-defined/">NameError: global name 'By' is not defined</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Problem:</p>
<p>Traceback (most recent call last):<br />
  File "seleniumPhantomJS.py", line 153, in <module><br />
    selenium_phantom_web_direct_rtp_create_test("10.65.11.145")<br />
  File "seleniumPhantomJS.py", line 118, in selenium_phantom_web_direct_rtp_create_test<br />
    isPresent = is_element_present(driver, By.CSS_SELECTOR, "article.notifier-log")<br />
NameError: global name 'By' is not defined<br />
[flemieux@atom makito]$ NameError: global name 'By' is not defined<br />
bash: NameError:: command not found...</p>
<p>Solution:</p>
<p>Add this to the top of your file</p>
<p><code>from selenium.webdriver.common.by import By</code></p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/selenium/nameerror-global-name-by-defined/">NameError: global name 'By' is not defined</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://tech.yipp.ca/selenium/nameerror-global-name-by-defined/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
